Browse Source

[IMP] - Improve inprogress search filter

pull/207/head
sbejaoui 6 years ago
parent
commit
753862f41b
  1. 8
      contract/views/contract.xml

8
contract/views/contract.xml

@ -194,17 +194,17 @@
/> />
<separator/> <separator/>
<filter name="not_finished" <filter name="not_finished"
string="Valid"
domain="['|', ('date_end', '=', False), ('date_end', '&gt;=', time.strftime('%Y-%m-%d'))]"
string="In progress"
domain="[('recurring_next_date', '&gt;=', time.strftime('%Y-%m-%d'))]"
/> />
<filter name="finished" <filter name="finished"
string="Finished" string="Finished"
domain="[('date_end', '&lt;', time.strftime('%Y-%m-%d'))]"
domain="[('date_end', '&lt;', 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', '&gt;=', 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"

Loading…
Cancel
Save