fix problem with return value (pid) at create_product
parent
2937915ac8
commit
46959ed0ff
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue