Skip to content

Commit

Permalink
[DEV] mv_account: Init Moveoplus Invoicing
Browse files Browse the repository at this point in the history
  • Loading branch information
phatdangminh committed Jul 6, 2024
1 parent d816169 commit 17714fd
Show file tree
Hide file tree
Showing 9 changed files with 100 additions and 1 deletion.
1 change: 1 addition & 0 deletions mv_account/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# -*- coding: utf-8 -*-
17 changes: 17 additions & 0 deletions mv_account/__manifest__.py
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,
}
2 changes: 2 additions & 0 deletions mv_account/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# -*- coding: utf-8 -*-
from . import account_payment_term
11 changes: 11 additions & 0 deletions mv_account/models/account_payment_term.py
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)
1 change: 1 addition & 0 deletions mv_account/security/ir.model.access.csv
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
Binary file added mv_account/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 58 additions & 0 deletions mv_account/static/description/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions mv_account/views/report_invoice.xml
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>
2 changes: 1 addition & 1 deletion mv_base/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
===================================================
""",
"author": "Phat Dang <phat.dangminh@moveoplus.com>",
"depends": ["base"],
"depends": ["base", "base_setup"],
"data": [
# SECURITY
"security/mv_base_groups.xml",
Expand Down

0 comments on commit 17714fd

Please sign in to comment.