From 00ebebce72441282bae3494088b9d6dd28df6e97 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Thu, 6 Jun 2024 10:45:47 +0700 Subject: add short_spesification on product variant, fix note detail purchasing job --- indoteknik_custom/models/product_template.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'indoteknik_custom/models/product_template.py') diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py index d490eb05..c94b523a 100755 --- a/indoteknik_custom/models/product_template.py +++ b/indoteknik_custom/models/product_template.py @@ -59,6 +59,7 @@ class ProductTemplate(models.Model): ], string='Kind of', copy=False) sni = fields.Boolean(string='SNI') tkdn = fields.Boolean(string='TKDN') + short_spesification = fields.Char(string='Short Spesification') def _get_qty_sold(self): for rec in self: @@ -351,6 +352,7 @@ class ProductProduct(models.Model): sla_version = fields.Integer(string="SLA Version", default=0) is_edited = fields.Boolean(string='Is Edited') qty_sold = fields.Float(string='Sold Quantity', compute='_get_qty_sold') + short_spesification = fields.Char(string='Short Spesification') def update_internal_reference_variants(self, limit=100): variants = self.env['product.product'].search([ -- cgit v1.2.3