Skip to Content
मेन्यू
This question has been flagged
1 Reply
2001 Views

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
Discard
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
Discard
Author

thanks a lot.

Related Posts Replies Views Activity
1
दिस॰ 22
2642
1
नव॰ 21
4230
1
सित॰ 21
6001
1
जून 21
2923
1
अग॰ 20
4433