mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[REF] Contract: use context_today instead of time in filters
This commit is contained in:
committed by
Francisco Ivan Anton Prieto
parent
1b92a2ee59
commit
70db1094ff
@@ -195,11 +195,11 @@
|
||||
<separator/>
|
||||
<filter name="not_finished"
|
||||
string="In progress"
|
||||
domain="['|', ('date_end', '>=', time.strftime('%Y-%m-%d')), ('date_end', '=', False)]"
|
||||
domain="['|', ('date_end', '>=', context_today().strftime('%Y-%m-%d')), ('date_end', '=', False)]"
|
||||
/>
|
||||
<filter name="finished"
|
||||
string="Finished"
|
||||
domain="[('date_end', '<', time.strftime('%Y-%m-%d')), ('recurring_next_date', '=', False)]"
|
||||
domain="[('date_end', '<', context_today().strftime('%Y-%m-%d')), ('recurring_next_date', '=', False)]"
|
||||
/>
|
||||
<group expand="0" string="Group By...">
|
||||
<filter name="next_invoice"
|
||||
|
||||
Reference in New Issue
Block a user