Skip to content
Permalink
Browse files

[FIX] product: Pricelist with multiple based other items only process…

… the first item
  • Loading branch information
carlosdauden committed Jan 22, 2019
1 parent ca8b354 commit 56c5d206605e65889cee0061968074a883fed204
Showing with 3 additions and 1 deletion.
  1. +3 −1 addons/product/models/product_pricelist.py
@@ -205,7 +205,9 @@ def _compute_price_rule(self, products_qty_partner, date=False, uom_id=False):
continue

if rule.base == 'pricelist' and rule.base_pricelist_id:
price_tmp = rule.base_pricelist_id._compute_price_rule([(product, qty, partner)])[product.id][0] # TDE: 0 = price, 1 = rule
price_tmp, rule_id = rule.base_pricelist_id._compute_price_rule([(product, qty, partner)])[product.id]
if not rule_id:
continue
price = rule.base_pricelist_id.currency_id.compute(price_tmp, self.currency_id, round=False)
else:
# if base option is public price take sale price else cost price of product

0 comments on commit 56c5d20

Please sign in to comment.
You can’t perform that action at this time.