diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-06-04 15:39:31 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-06-04 15:39:31 +0700 |
| commit | 9306992db370c793e8cab494038b0de5b61b600f (patch) | |
| tree | 63639632645948f4026d480408866c58340ea7c7 /indoteknik_api/models | |
| parent | d52735b3d1dc570f44ad46cae9f069da03784cff (diff) | |
add sni and tkdn on product_template
Diffstat (limited to 'indoteknik_api/models')
| -rw-r--r-- | indoteknik_api/models/product_template.py | 2 |
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, |
