Browse Source

[IMP] replace multi by model as we don't work with self

pull/19/head
houssine 5 years ago
parent
commit
b70b4f558a
  1. 2
      easy_my_coop/models/partner.py

2
easy_my_coop/models/partner.py

@ -59,7 +59,7 @@ class ResPartner(models.Model):
for partner, child_ids in all_partners_and_children.items():
partner.total_invoiced = sum(price['total'] for price in price_totals if price['partner_id'] in child_ids)
@api.multi
@api.model
def _get_share_type(self):
product_obj = self.env['product.product']
share_type_list = [('', '')]

Loading…
Cancel
Save