I have a custom model:
class ProductExtended(models.Model):
...
product_id = fields.Many2one('product.template', 'Product')
...
And I am trying to do the following inside a method:
....
new_record.product_id = new_parametrized_product
....
where:
new_record = product.extended(1724,)
new_parametrized_product = product.template(1275,)
but I get:
ValueError: Expected Singleton: product.template()
Could someone help me to understand what is wrong here?
product_idshould be used to link toproduct.product- qvpham