summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/account_move.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/indoteknik_custom/views/account_move.xml b/indoteknik_custom/views/account_move.xml
index 6bdc16d0..af4eaa05 100644
--- a/indoteknik_custom/views/account_move.xml
+++ b/indoteknik_custom/views/account_move.xml
@@ -24,6 +24,13 @@
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_out_invoice_tree"/>
<field name="arch" type="xml">
+ <field name="invoice_date_due" position="attributes">
+ <attribute name="widget">badge</attribute>
+ <attribute name="decoration-danger">invoice_day_to_due &lt; 0</attribute>
+ </field>
+ <field name="invoice_date_due" position="after">
+ <field name="invoice_day_to_due" attrs="{'invisible': [['payment_state', 'in', ('paid', 'in_payment', 'reversed')]]}"/>
+ </field>
<field name="payment_state" position="after">
<field name="invoice_payment_term_id"/>
<field name="date_kirim_tukar_faktur"/>