Skip to content

Commit 986e288

Browse files
committed
[FIX] account: hide due date on cancelled invoices and vendor bills
1 parent 6819f50 commit 986e288

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/account/views/account_move_views.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@
522522
<field name="invoice_date" optional="show" column_invisible="context.get('default_move_type') not in ('in_invoice', 'in_refund', 'in_receipt')" readonly="state != 'draft'" string="Bill Date" decoration-warning="abnormal_date_warning"/>
523523
<field name="invoice_date" optional="show" column_invisible="context.get('default_move_type') not in ('out_invoice', 'out_refund', 'out_receipt')" readonly="state != 'draft'" string="Invoice Date" decoration-warning="abnormal_date_warning"/>
524524
<field name="date" optional="hide" string="Accounting Date" readonly="state in ['cancel', 'posted']"/>
525-
<field name="invoice_date_due" widget="remaining_days" optional="show" invisible="payment_state in ('paid', 'in_payment', 'reversed')"/>
525+
<field name="invoice_date_due" widget="remaining_days" optional="show" invisible="payment_state in ('paid', 'in_payment', 'reversed') or status_in_payment == 'cancel'"/>
526526
<field name="invoice_origin" optional="hide" string="Source Document"/>
527527
<field name="payment_reference" optional="hide" column_invisible="context.get('default_move_type') in ('out_invoice', 'out_refund', 'out_receipt')"/>
528528
<field name="ref" optional="hide"/>

0 commit comments

Comments
 (0)