diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2023-08-10 04:56:36 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2023-08-10 04:56:36 +0000 |
| commit | 5ed45c6e91b2b341b5698b4ed6d5de5ab756dbee (patch) | |
| tree | 91eb1a947c9b7a4aac9871c58b081c79c197dd17 /indoteknik_api | |
| parent | 4fd0d7f15ee2d7958c6d9c60faf03d1e9915eaef (diff) | |
| parent | ddc94ab173b4bf01de9dfa900f951eed56fe77b6 (diff) | |
Merged in feature/email-cart-wishlist (pull request #95)
Update website user cart mail template
Diffstat (limited to 'indoteknik_api')
| -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')) |
