Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2010 Vizualizări

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?

Imagine profil
Abandonează
Cel mai bun răspuns

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
Imagine profil
Abandonează
Autor

thanks a lot.

Related Posts Răspunsuri Vizualizări Activitate
1
dec. 22
2648
1
nov. 21
4243
1
sept. 21
6010
1
iun. 21
2929
1
aug. 20
4451