Skip to content

Commit

Permalink
[FIX] product: add missing dep ctx on price
Browse files Browse the repository at this point in the history
This depends context was missing and getting the price of product.tempalte for different pricelist was not working.
We use the same depends_context as in product.product _compute_product_price
  • Loading branch information
jjscarafia committed Oct 23, 2022
1 parent 1c6c625 commit 378181c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/product/models/product_template.py
Expand Up @@ -188,6 +188,7 @@ def _compute_currency_id(self):
def _compute_cost_currency_id(self):
self.cost_currency_id = self.env.company.currency_id.id

@api.depends_context('pricelist', 'partner', 'quantity', 'uom', 'date', 'no_variant_attributes_price_extra')
def _compute_template_price(self):
prices = self._compute_template_price_no_inverse()
for template in self:
Expand Down

0 comments on commit 378181c

Please sign in to comment.