diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-11-22 09:47:09 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-11-22 09:47:09 +0700 |
| commit | 14559e52ce09e6e73c220987455c43ce89f9eabf (patch) | |
| tree | f1376589fe885ef42ea45ab6cb3bc7f71c7d476a /indoteknik_api/models/product_product.py | |
| parent | 755e36e6fed87f787c2a0d31f4318a6eae97e55c (diff) | |
| parent | 4e84a3c939f50315c5eba4a9ae350f17383b5543 (diff) | |
Merge branch 'production' into iman/pengajuan-tempo
# Conflicts:
# indoteknik_custom/models/res_partner.py
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) |
