Browse Source

[FIX] emc: cooperator_type depends

pull/77/head
Manuel Claeys Bouuaert 5 years ago
parent
commit
571f223333
  1. 4
      easy_my_coop/models/partner.py

4
easy_my_coop/models/partner.py

@ -79,7 +79,9 @@ class ResPartner(models.Model):
return [('', '')] + share_types return [('', '')] + share_types
@api.multi @api.multi
@api.depends('share_ids')
@api.depends('share_ids', 'share_ids.share_product_id',
'share_ids.share_product_id.default_code',
'share_ids.share_number')
def _compute_cooperator_type(self): def _compute_cooperator_type(self):
for partner in self: for partner in self:
share_type = '' share_type = ''

Loading…
Cancel
Save