Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1994 Zobrazení

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šit
Nejlepší odpověď

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šit
Autor

thanks a lot.

Related Posts Odpovědi Zobrazení Aktivita
1
pro 22
2641
1
lis 21
4225
1
zář 21
5994
1
čvn 21
2920
1
srp 20
4423