diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-11-29 10:35:39 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-11-29 10:35:39 +0700 |
| commit | 75cad0da1476a2e605ef5d0f35cfb58944831934 (patch) | |
| tree | 6cc7e014ef006e8d7794f2b6f50437bef61dd724 /indoteknik_api/models/product_product.py | |
| parent | fd5617629243b879e020afbdb2f1957d2e419ae4 (diff) | |
| parent | fa3da08e5c0837e1492a3b00b17b7492c07ac676 (diff) | |
Merge branch 'production' into CR/website-improvment
Diffstat (limited to 'indoteknik_api/models/product_product.py')
| -rw-r--r-- | indoteknik_api/models/product_product.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indoteknik_api/models/product_product.py b/indoteknik_api/models/product_product.py index 386ddb6a..f8869c7d 100644 --- a/indoteknik_api/models/product_product.py +++ b/indoteknik_api/models/product_product.py @@ -61,8 +61,9 @@ class ProductProduct(models.Model): price_for = self.env.context.get('price_for', 'odoo') pricelist = pricelist or self.env.context.get('user_pricelist') default_price_tier = '1_v2' - - price_tier = pricelist.get_tier_level() + price_tier = [] + if pricelist: + price_tier = pricelist.get_tier_level() price_tier = price_tier if price_tier else default_price_tier pricelist = self._get_pricelist_tier(price_tier) |
