Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
2018 Prikazi

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
Opusti
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
Opusti
Avtor

thanks a lot.

Related Posts Odgovori Prikazi Aktivnost
1
dec. 22
2670
1
nov. 21
4287
1
sep. 21
6023
1
jun. 21
2938
1
avg. 20
4458