diff options
Diffstat (limited to 'indoteknik_custom/models')
| -rwxr-xr-x | indoteknik_custom/models/product_template.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py index 707a8381..e9d57dc3 100755 --- a/indoteknik_custom/models/product_template.py +++ b/indoteknik_custom/models/product_template.py @@ -51,7 +51,6 @@ class ProductTemplate(models.Model): is_new_product = fields.Boolean(string='Produk Baru', help='Centang jika ingin ditammpilkan di website sebagai segment Produk Baru') seq_new_product = fields.Integer(string='Seq New Product', help='Urutan Sequence New Product') - is_edit = fields.Boolean(string="Update Counter", default=True) # def write(self, vals): # if not self.env.user.is_purchasing_manager: @@ -69,7 +68,7 @@ class ProductTemplate(models.Model): # raise UserError("Hanya Pak Tyas yang bisa mengedit product") # return super(ProductTemplate, self).write(vals) - @api.constrains('name','default_code',) + @api.constrains('name','default_code') def _check_duplicate_product(self): if not self.env.user.is_purchasing_manager: for product in self: @@ -332,7 +331,6 @@ class ProductProduct(models.Model): qty_onhand_bandengan = fields.Float(string='Qty Incoming Bandengan', compute='_get_qty_onhand_bandengan') qty_incoming_bandengan = fields.Float(string='Qty Incoming Bandengan', compute='_get_qty_incoming_bandengan') sla_version = fields.Integer(string="SLA Version", default=0) - is_edit = fields.Boolean(string="Update Counter", default=True) # def write(self, vals): # if not self.env.user.is_purchasing_manager: @@ -349,7 +347,7 @@ class ProductProduct(models.Model): # raise UserError("Hanya Pak Tyas yang bisa mengedit product") # return super(ProductProduct, self).write(vals) - @api.constrains('name','default_code',) + @api.constrains('name','default_code') def _check_duplicate_product(self): if not self.env.user.is_purchasing_manager: for product in self: |
