Skip to content

Commit 607df69

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 This improves clarity by removing non-essential due date information for invoices that are no longer pending. task-Make due date invisible for cancelled invoices
1 parent 6819f50 commit 607df69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ package.json
4848
/lib/
4949
/man/
5050
/share/
51-
/src/
51+
/src/

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)