Browse Source

[FIX] put back the link to product.product as it needs a better rework

and a script for migrating data from existing projects
pull/1/head
houssine 8 years ago
parent
commit
17101502bf
  1. 2
      easy_my_coop/models/partner.py

2
easy_my_coop/models/partner.py

@ -48,7 +48,7 @@ class ResPartner(models.Model):
@api.multi
def _get_share_type(self):
share_type_list = [('','')]
for share_type in self.env['product.template'].search([('is_share','=',True)]):
for share_type in self.env['product.product'].search([('is_share','=',True)]):
share_type_list.append((str(share_type.id),share_type.short_name))
return share_type_list

Loading…
Cancel
Save