Browse Source

[FIX] - Fix In progress contract filter

pull/207/head
sbejaoui 6 years ago
parent
commit
2e0dad4937
  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( context=dict(
self.env.context, self.env.context,
search_default_recurring_invoices=True, search_default_recurring_invoices=True,
search_default_not_finished=True,
search_default_partner_id=self.id, search_default_partner_id=self.id,
default_partner_id=self.id, default_partner_id=self.id,
default_recurring_invoices=True, default_recurring_invoices=True,

2
contract/views/contract.xml

@ -200,7 +200,7 @@
<separator/> <separator/>
<filter name="not_finished" <filter name="not_finished"
string="In progress" 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" <filter name="finished"
string="Finished" string="Finished"

Loading…
Cancel
Save