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 ad05040 commit 7803a4bacff6d8e27462b63b608e6e9b12c828b5
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)], date, uom_id)[product.id][0] # TDE: 0 = price, 1 = rule
price_tmp, rule_id = rule.base_pricelist_id._compute_price_rule([(product, qty, partner)], date, uom_id)[product.id] # TDE: 0 = price, 1 = rule
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 7803a4b

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