diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2022-11-17 11:29:04 +0700 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2022-11-17 11:29:04 +0700 |
| commit | f168734f000ea34fc3a15bdf4b6af9f4fe797d06 (patch) | |
| tree | 51fbbc669c5bae053de8272794a39a1c55f64afc | |
| parent | dbd6731a446bc93a34b6f8389b865ebd94fbff95 (diff) | |
Change product pricelist default parameter
| -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 |
