diff --git a/ext/custom-addons/dp_custom/models/product.py b/ext/custom-addons/dp_custom/models/product.py index 475f575a..458aa7fd 100644 --- a/ext/custom-addons/dp_custom/models/product.py +++ b/ext/custom-addons/dp_custom/models/product.py @@ -103,7 +103,8 @@ class ProductTemplate(models.Model): pid = product_template.id else: if vals['active']: - pid = self.create(vals) + res = self.create(vals) + pid = res.id return True, pid @api.model