diff --git a/ext/custom-addons/dp_custom/models/product.py b/ext/custom-addons/dp_custom/models/product.py index 2faecc3e..3d27fc27 100644 --- a/ext/custom-addons/dp_custom/models/product.py +++ b/ext/custom-addons/dp_custom/models/product.py @@ -80,7 +80,8 @@ class ProductTemplate(models.Model): if product_template: product_template.write(vals) else: - self.create(vals) + if vals['active']: + self.create(vals) return True @api.model