Skip to content

Commit 0327ecf

Browse files
committed
[IMP] account: hide due date in list view when irrelevant
Updated the account move list view to conditionally hide the Due Date field when the invoice is either cancelled or already settled task-4908847
1 parent 6819f50 commit 0327ecf

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 in ('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)