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/>
|
<separator/>
|
||||||
<filter name="not_finished"
|
<filter name="not_finished"
|
||||||
string="Valid"
|
string="In progress"
|
||||||
domain="['|', ('date_end', '=', False), ('date_end', '>=', time.strftime('%Y-%m-%d'))]"
|
domain="[('recurring_next_date', '>=', time.strftime('%Y-%m-%d'))]"
|
||||||
/>
|
/>
|
||||||
<filter name="finished"
|
<filter name="finished"
|
||||||
string="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...">
|
<group expand="0" string="Group By...">
|
||||||
<filter name="next_invoice"
|
<filter name="next_invoice"
|
||||||
string="Next Invoice"
|
string="Next Invoice"
|
||||||
domain="[]"
|
domain="[('recurring_next_date', '>=', time.strftime('%Y-%m-%d'))]"
|
||||||
context="{'group_by':'recurring_next_date'}"
|
context="{'group_by':'recurring_next_date'}"
|
||||||
/>
|
/>
|
||||||
<filter name="date_end"
|
<filter name="date_end"
|
||||||
|
|||||||
Reference in New Issue
Block a user