Browse Source

[FIX] - Fix In progress contract filter

13.0-mig-contract
sbejaoui 6 years ago
committed by Administrator
parent
commit
43d90b71ca
  1. 1
      contract/models/res_partner.py
  2. 2
      contract/views/contract.xml

1
contract/models/res_partner.py

@ -62,7 +62,6 @@ class ResPartner(models.Model):
context=dict(
self.env.context,
search_default_recurring_invoices=True,
search_default_not_finished=True,
search_default_partner_id=self.id,
default_partner_id=self.id,
default_recurring_invoices=True,

2
contract/views/contract.xml

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

Loading…
Cancel
Save