Commit ab06aeca by Odoo

Change cooperative states to be used for compute_customer

parent e1c5eb54
......@@ -350,7 +350,7 @@ class ResPartner(models.Model):
def _compute_customer(self):
for partner in self:
partner.customer =\
partner.cooperative_state in self.COOPERATIVE_STATE_CUSTOMER
partner.cooperative_state in ['up_to_date', 'alert', 'delay', 'exempted']
@api.depends('child_ids')
@api.multi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment