summaryrefslogtreecommitdiff
path: root/indoteknik_api/models
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-06-05 02:29:48 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-06-05 02:29:48 +0000
commitec4aefc64a9f42d1b40d03048fc384e158191218 (patch)
tree14d1fd1358ae41d65b9412fdfc0195c8dd9f20bd /indoteknik_api/models
parentabd7dd1ecc9246b1924dcf70b3ed41c964f3746f (diff)
parent9306992db370c793e8cab494038b0de5b61b600f (diff)
Merged in production (pull request #144)
Production
Diffstat (limited to 'indoteknik_api/models')
-rw-r--r--indoteknik_api/models/product_template.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_api/models/product_template.py b/indoteknik_api/models/product_template.py
index fb77769f..75899624 100644
--- a/indoteknik_api/models/product_template.py
+++ b/indoteknik_api/models/product_template.py
@@ -57,6 +57,8 @@ class ProductTemplate(models.Model):
'image': self.env['ir.attachment'].api_image('product.template', 'image_128', product_template.id),
'code': product_template.default_code or '',
'name': product_template.name,
+ 'sni': product_template.sni,
+ 'tkdn': product_template.tkdn,
'variant_total': len(product_template.product_variant_ids),
'stock_total': product_template.qty_stock_vendor,
'weight': product_template.weight,