fix problem with return value (pid) at create_product

develop
Andreas Osim 2022-08-22 16:25:57 +02:00
parent 2937915ac8
commit 46959ed0ff
1 changed files with 2 additions and 1 deletions

View File

@ -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