summaryrefslogtreecommitdiff
path: root/indoteknik_api/models/product_template.py
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_api/models/product_template.py')
-rw-r--r--indoteknik_api/models/product_template.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_api/models/product_template.py b/indoteknik_api/models/product_template.py
index 6cae997d..c5f10413 100644
--- a/indoteknik_api/models/product_template.py
+++ b/indoteknik_api/models/product_template.py
@@ -6,7 +6,7 @@ class ProductTemplate(models.Model):
def api_single_response(self, product_template, with_detail=False):
base_url = self.env['ir.config_parameter'].get_param('web.base.url')
- product_pricelist_default_discount_id = self.env['ir.config_parameter'].get_param('product.pricelist.default_discount.id')
+ product_pricelist_default_discount_id = self.env['ir.config_parameter'].get_param('product.pricelist.default_discount_id')
product_pricelist_default_discount_id = int(product_pricelist_default_discount_id)
data = {
'id': product_template.id,