Skip to Content
Menú
This question has been flagged
1 Respondre
2103 Vistes

I get product.product object using search method. Now I want to set a vendor (from res.partner data) for this product using orm. how can I achieve?

Avatar
Descartar
Best Answer

Hi

lets say the product.product object that you got be product_obj

Now to set vendors you have to write the seller_id field

eg: product_obj.write({'seller_ids': [(0, 0, [Vendor details])]})


Regards
Avatar
Descartar
Autor

thanks a lot.

Related Posts Respostes Vistes Activitat
1
de des. 22
2738
1
de nov. 21
4423
1
d’oct. 21
6128
1
de juny 21
3006
1
d’ag. 20
4533