summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-10-16 13:46:05 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-10-16 13:46:05 +0700
commitf3e37cbd999409929703ebddef5b487a7daf4940 (patch)
treec42c54280da19ce949fd56ed42a73283a0652f2f
parenteefe129e31b112d80038fc3aecf2aee4c4e10108 (diff)
fix error base pricelist
-rwxr-xr-xindoteknik_custom/models/product_template.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py
index fb8561e7..b1930ada 100755
--- a/indoteknik_custom/models/product_template.py
+++ b/indoteknik_custom/models/product_template.py
@@ -403,7 +403,7 @@ class ProductProduct(models.Model):
for product in self:
pricelist_id = self.env['ir.config_parameter'].sudo().get_param('product.pricelist.default_price_id_v2')
- domain = [('pricelist_id', '=', pricelist_id or 17022), ('product_id', '=', product.id)]
+ domain = [('pricelist_id.id', '=', pricelist_id or 17022), ('product_id.id', '=', product.id)]
product_pricelist_item = self.env['product.pricelist.item'].search(domain, limit=1)
if product_pricelist_item.base_pricelist_id: