-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] account_move_invoice_date_due_normal_date_tree: Change tree fie…
…ld widget view
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
14 changes: 14 additions & 0 deletions
14
account_move_invoice_date_due_normal_date_tree/__manifest__.py
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,14 @@ | ||
{ | ||
'name': 'account_move_invoice_date_due_normal_date_tree', | ||
'version': '16.0.1.0.0', | ||
'category': 'Accounting', | ||
'author': 'Avanzosc', | ||
'license': 'LGPL-3', | ||
'depends': ['account'], | ||
'data': [ | ||
'views/account_move_views.xml', | ||
], | ||
'installable': True, | ||
'application': False, | ||
'website': 'https://avanzosc.es', | ||
} |
18 changes: 18 additions & 0 deletions
18
account_move_invoice_date_due_normal_date_tree/views/account_move_views.xml
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,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<odoo> | ||
<data> | ||
<record id="view_invoice_tree_inherit" model="ir.ui.view"> | ||
<field name="name">account.invoice.tree.inherit</field> | ||
<field name="model">account.move</field> | ||
<field name="inherit_id" ref="account.view_invoice_tree" /> | ||
<field name="arch" type="xml"> | ||
<field name="invoice_date_due" position="attributes"> | ||
<attribute name="t-if">False</attribute> | ||
</field> | ||
<field name="invoice_date_due" position="after"> | ||
<field name="invoice_date_due" optional="show" attrs="{'invisible': [['payment_state', 'in', ('paid', 'in_payment', 'reversed')]]}"/> | ||
</field> | ||
</field> | ||
</record> | ||
</data> | ||
</odoo> |