forked from qdai123/moveopluscustom
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DEV] mv_account: Init Moveoplus Invoicing
- Loading branch information
1 parent
d816169
commit 17714fd
Showing
9 changed files
with
100 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# -*- coding: utf-8 -*- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# -*- coding: utf-8 -*- | ||
{ | ||
"name": "MV Invoicing", | ||
"version": "17.0.1.0", | ||
"category": "Moveoplus/MV Invoicing", | ||
"description": "Base on Invoicing modules and Related modules to customize new features", | ||
"author": "Phat Dang <phat.dangminh@moveoplus.com>", | ||
"depends": ["account"], | ||
"data": [ | ||
# SECURITY | ||
"security/ir.model.access.csv", | ||
# VIEWS | ||
"views/report_invoice.xml", | ||
], | ||
"license": "LGPL-3", | ||
"application": True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# -*- coding: utf-8 -*- | ||
from . import account_payment_term |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# -*- coding: utf-8 -*- | ||
from odoo import models | ||
|
||
|
||
class AccountPaymentTerm(models.Model): | ||
_inherit = "account.payment.term" | ||
|
||
# /// ORM Methods /// | ||
|
||
def _get_amount_due_after_discount(self, total_amount, untaxed_amount): | ||
return super()._get_amount_due_after_discount(total_amount, untaxed_amount) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
|
||
<!-- MOVEO+ Inherited: Report Invoice Document (account.report_invoice_document) --> | ||
<template id="mv_account.report_invoice_document" name="MOVEO+ Inherited: Report Invoice Document" inherit_id="account.report_invoice_document"> | ||
<!-- Write your logic code here... --> | ||
</template> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters