Skip to content

Commit 09380eb

Browse files
committed
[IMP] account: Due date is invisible for cancelled invoices
When an invoice has been canceled, the Due date for the payment is still showing and this information is not relevant anymore as no payment is expected. When an invoice is canceled, the Due date for the payment is invisible. task-4908884
1 parent 6819f50 commit 09380eb

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 state == '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)