diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-10-05 10:08:07 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-10-05 10:08:07 +0700 |
| commit | e797beb50e194a0a1c72095d538db7ed1a5a1bac (patch) | |
| tree | a0e4cf742a1b8688fbfd0e7b2ca578cb6d6ce5f6 /indoteknik_custom | |
| parent | 37772d1e95effc8e97ab8912cb32424e8b9a1316 (diff) | |
| parent | c452ac57ec1266452d04bbf4c38191aaa6630186 (diff) | |
Merge branch 'change/feature/pricelist' into dev/pricelist
Diffstat (limited to 'indoteknik_custom')
| -rw-r--r-- | indoteknik_custom/models/solr/product_product.py | 2 | ||||
| -rw-r--r-- | indoteknik_custom/models/solr/product_template.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/solr/product_product.py b/indoteknik_custom/models/solr/product_product.py index 16135e5e..20a68b47 100644 --- a/indoteknik_custom/models/solr/product_product.py +++ b/indoteknik_custom/models/solr/product_product.py @@ -134,7 +134,7 @@ class ProductProduct(models.Model): def solr_results(self): solr_model = self.env['apache.solr'] - pricelist = self.env.user_pricelist + pricelist = self.env.context.get('user_pricelist') price_tier = pricelist.get_tier_name() results = [] diff --git a/indoteknik_custom/models/solr/product_template.py b/indoteknik_custom/models/solr/product_template.py index e39530a7..30c3b3c5 100644 --- a/indoteknik_custom/models/solr/product_template.py +++ b/indoteknik_custom/models/solr/product_template.py @@ -157,7 +157,7 @@ class ProductTemplate(models.Model): def solr_results(self, detail=False): solr_model = self.env['apache.solr'] - pricelist = self.env.user_pricelist + pricelist = self.env.context.get('user_pricelist') price_tier = pricelist.get_tier_name() results = [] |
