diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2023-08-10 05:02:39 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2023-08-10 05:02:39 +0000 |
| commit | 9f8664c33429e41c6133ba2b325662245ffbc92d (patch) | |
| tree | bce73d880f28edb48810fe263c8bcd717339b9be /indoteknik_api/models | |
| parent | 1e3ea5f5df6794ffb5712389deca6d0d868cfc0a (diff) | |
| parent | 659268250145b51e8700bc01871ae3bba34f76f3 (diff) | |
Merged in change/feature/voucher (pull request #96)
Change/feature/voucher
Diffstat (limited to 'indoteknik_api/models')
| -rw-r--r-- | indoteknik_api/models/product_product.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_api/models/product_product.py b/indoteknik_api/models/product_product.py index ff7c6498..a2d2f8a2 100644 --- a/indoteknik_api/models/product_product.py +++ b/indoteknik_api/models/product_product.py @@ -55,8 +55,8 @@ class ProductProduct(models.Model): product_promotions = program_line.get_active_promotions(self.id) return True if len(product_promotions) > 0 else False - def calculate_website_price(self): - pricelist = self.env.user_pricelist + def calculate_website_price(self, pricelist=False): + pricelist = pricelist or self.env.user_pricelist config = self.env['ir.config_parameter'] product_pricelist_tier1 = int(config.get_param('product.pricelist.tier1')) |
