diff options
| -rw-r--r-- | indoteknik_api/models/product_pricelist.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_api/models/product_pricelist.py b/indoteknik_api/models/product_pricelist.py index e2bb58e5..4e5c9501 100644 --- a/indoteknik_api/models/product_pricelist.py +++ b/indoteknik_api/models/product_pricelist.py @@ -39,8 +39,8 @@ class ProductPricelist(models.Model): price, discounts = self.get_product_price(pricelist_id, product_id) if price == 0: - product_pricelist_fallback_discount_id = self.env['ir.config_parameter'].get_param('product.pricelist.fallback_discount_id') - price, discounts = self.get_product_price(int(product_pricelist_fallback_discount_id), product_id) + product_pricelist_default_price_id = self.env['ir.config_parameter'].get_param('product.pricelist.default_price_id') + price, discounts = self.get_product_price(int(product_pricelist_default_price_id), product_id) price_discount = price discount_percentage = 0 |
