mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] - Improve inprogress search filter
This commit is contained in:
committed by
Francisco Ivan Anton Prieto
parent
24027f0918
commit
8bef36cdd3
@@ -194,17 +194,17 @@
|
||||
/>
|
||||
<separator/>
|
||||
<filter name="not_finished"
|
||||
string="Valid"
|
||||
domain="['|', ('date_end', '=', False), ('date_end', '>=', time.strftime('%Y-%m-%d'))]"
|
||||
string="In progress"
|
||||
domain="[('recurring_next_date', '>=', time.strftime('%Y-%m-%d'))]"
|
||||
/>
|
||||
<filter name="finished"
|
||||
string="Finished"
|
||||
domain="[('date_end', '<', time.strftime('%Y-%m-%d'))]"
|
||||
domain="[('date_end', '<', time.strftime('%Y-%m-%d')), ('recurring_next_date', '=', False)]"
|
||||
/>
|
||||
<group expand="0" string="Group By...">
|
||||
<filter name="next_invoice"
|
||||
string="Next Invoice"
|
||||
domain="[]"
|
||||
domain="[('recurring_next_date', '>=', time.strftime('%Y-%m-%d'))]"
|
||||
context="{'group_by':'recurring_next_date'}"
|
||||
/>
|
||||
<filter name="date_end"
|
||||
|
||||
Reference in New Issue
Block a user