Skip to content

Commit

Permalink
[FIX] product_price_taxes_included: change on arg
Browse files Browse the repository at this point in the history
closes #616

Signed-off-by: Franco Leyes <lef@adhoc.com.ar>
  • Loading branch information
matiasperalta1 committed Apr 24, 2024
1 parent 853514e commit 403b37f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions product_price_taxes_included/models/product_pricelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ class ProductPricelist(models.Model):
_inherit = "product.pricelist"

def _get_products_price(
self, products, quantities, date=False, uom_id=False, **kwargs):
self, products, quantity, date=False, uom_id=False, **kwargs):
"""If we send taxes_included on context we include price on the
requested prices for this pricelist. We do it here and not in
price_compute of product.template / product.product because:
* we only need to do it once
* pricelist could be based on fixed prices so product price is not used
"""
res = super()._get_products_price(
products, quantities, date=date, uom_id=uom_id, **kwargs)
products, quantity, date=date, uom_id=uom_id, **kwargs)
if self._context.get('taxes_included'):
company_id = (self._context.get('company_id')
or self.env.company.id)
Expand Down

0 comments on commit 403b37f

Please sign in to comment.