Browse Source

[REF] Contract: use context_today instead of time in filters

13.0-mig-contract
Thomas Binsfeld 6 years ago
committed by Administrator
parent
commit
0e37b105c3
  1. 4
      contract/views/contract.xml

4
contract/views/contract.xml

@ -195,11 +195,11 @@
<separator/>
<filter name="not_finished"
string="In progress"
domain="['|', ('date_end', '&gt;=', time.strftime('%Y-%m-%d')), ('date_end', '=', False)]"
domain="['|', ('date_end', '&gt;=', context_today().strftime('%Y-%m-%d')), ('date_end', '=', False)]"
/>
<filter name="finished"
string="Finished"
domain="[('date_end', '&lt;', time.strftime('%Y-%m-%d')), ('recurring_next_date', '=', False)]"
domain="[('date_end', '&lt;', context_today().strftime('%Y-%m-%d')), ('recurring_next_date', '=', False)]"
/>
<group expand="0" string="Group By...">
<filter name="next_invoice"

Loading…
Cancel
Save