Product-supplier change since 5.2

I noticed with 5.2 the product supplier can be bound to product.product not product.template as it was before.

How to achieve this functionality through ORM?
Until now I was updating with following:

product_supplier.product = product_template_object

but, when trying to assign similarly variant:

product_supplier.product = product_variant_object

it throws this exception:

 *** trytond.model.modelstorage.RequiredValidationError: ('UserError', ('A value is required for field "Product" in "Product Supplier".', ''))                          

Thanks for your help,


The former field named product was renamed to template to let define a product which actually point to a product.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.