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 |             pid = product_template.id | ||||||
|         else: |         else: | ||||||
|             if vals['active']: |             if vals['active']: | ||||||
|                 pid = self.create(vals) |                 res = self.create(vals) | ||||||
|  |                 pid = res.id | ||||||
|         return True, pid |         return True, pid | ||||||
| 
 | 
 | ||||||
|     @api.model |     @api.model | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue