Skip to Content
Menu
This question has been flagged
1 Odpoveď
2111 Zobrazenia

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
Zrušiť
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
Zrušiť
Autor

thanks a lot.

Related Posts Replies Zobrazenia Aktivita
1
dec 22
2748
1
nov 21
4473
1
okt 21
6142
1
jún 21
3022
1
aug 20
4568