diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2023-10-13 15:38:46 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2023-10-13 15:38:46 +0700 |
| commit | 9b2203ce1fdaad20b23fad1f9b0a1995311e175c (patch) | |
| tree | 0fbdac49f21575f0fa7d5e4f974455fbdc3ce33e /indoteknik_custom/models/product_template.py | |
| parent | a00faa739bdbd8d7750728bdfdc3926b9bf446e2 (diff) | |
| parent | ea8b431331628bc300d23d5d3ee43cf1f0f1018a (diff) | |
Merge branch 'production' of bitbucket.org:altafixco/indoteknik-addons into production
Diffstat (limited to 'indoteknik_custom/models/product_template.py')
| -rwxr-xr-x | indoteknik_custom/models/product_template.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py index defcbdd4..fb8561e7 100755 --- a/indoteknik_custom/models/product_template.py +++ b/indoteknik_custom/models/product_template.py @@ -401,9 +401,9 @@ class ProductProduct(models.Model): def _compute_web_price(self): for product in self: - pricelist_id = self.env.context.get('pricelist') + pricelist_id = self.env['ir.config_parameter'].sudo().get_param('product.pricelist.default_price_id_v2') - domain = [('pricelist_id', '=', pricelist_id or 1), ('product_id', '=', product.id)] + domain = [('pricelist_id', '=', pricelist_id or 17022), ('product_id', '=', product.id)] product_pricelist_item = self.env['product.pricelist.item'].search(domain, limit=1) if product_pricelist_item.base_pricelist_id: |
