Skip to content

Commit

Permalink
Merge 95c9399 into a925f60
Browse files Browse the repository at this point in the history
  • Loading branch information
MiquelRForgeFlow committed Oct 25, 2019
2 parents a925f60 + 95c9399 commit 97215e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions product_supplierinfo_for_customer/models/product_product.py
Expand Up @@ -29,6 +29,8 @@ def price_compute(
if price_type == 'partner':
partner = self.env.context.get('partner_id', False) or \
self.env.context.get('partner', False)
if partner and not isinstance(partner, (int,)):
partner = partner.id
prices = super(ProductProduct, self).price_compute(
'list_price', uom, currency, company)
for product in self:
Expand Down

0 comments on commit 97215e6

Please sign in to comment.