Browse Source

Merge pull request #77 from coopiteasy/12.0-fix-emc-cooperator-type-depends

Fix depends decorator of compute cooperator type function
pull/82/head 12.0-2020-03-26.00
Manuel Claeys Bouuaert 5 years ago
committed by GitHub
parent
commit
b3026a6746
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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