[IMP] account: introduce a second hidden "Report Dates" filter, for audit of monodate reports

This is used together with the audit features defined in account_reports (and fixed in the enterprise counterpart of this branch).

closes odoo/odoo#109521

X-original-commit: 5b8686526e0faeee38cac6e2017a8f840aac041c
Related: odoo/enterprise#35616
Signed-off-by: Laurent Smet <las@odoo.com>
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
This commit is contained in:
oco-odoo
2023-01-12 11:09:29 +01:00
parent 3b62a4f8ef
commit c34f124f5a
@@ -347,6 +347,7 @@
<filter string="Date" name="date" date="date"/>
<separator/>
<filter string="Report Dates" name="date_between" domain="[('date', '&gt;=', context.get('date_from')), ('date', '&lt;=', context.get('date_to'))]" invisible="1"/>
<filter string="Report Dates" name="date_before" domain="[('date', '&lt;=', context.get('date_to'))]" invisible="1"/>
<separator/>
<group expand="0" string="Group By">
<filter string="Journal Entry" name="group_by_move" domain="[]" context="{'group_by': 'move_name'}"/>