Skip to content

Commit

Permalink
[FIX] Assure you get partner id
Browse files Browse the repository at this point in the history
  • Loading branch information
MiquelRForgeFlow committed Oct 25, 2019
1 parent a925f60 commit 95c9399
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 95c9399

Please sign in to comment.