[FIX] account: filter due date

The filter was considering the Accounting date, which has nothing to do
with the due date.

Part-of: odoo/odoo#141457
This commit is contained in:
william-andre
2023-11-08 04:09:51 +00:00
parent 072c7ee50f
commit 32c2c5378c
+1 -1
View File
@@ -435,7 +435,7 @@
<filter string="Purchases" name="purchases" domain="[('journal_id.type', '=', 'purchase')]" context="{'default_journal_type': 'purchase'}"/>
<separator/>
<filter string="Invoice Date" name="invoice_date" date="invoice_date"/>
<filter string="Due Date" name="date_maturity" date="date"/>
<filter string="Due Date" name="payment_date" date="payment_date"/>
<filter string="Overdue" name="late" domain="[('date_maturity', '&lt;', time.strftime('%Y-%m-%d'))]" help="Overdue payments, due date passed"/>
<separator/>
<filter string="Report Dates" name="date_between" domain="[('date', '&gt;=', context.get('date_from')), ('date', '&lt;=', context.get('date_to'))]" invisible="1"/>