Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
1999 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
2641
1
nov. 21
4227
1
sept. 21
5999
1
iun. 21
2921
1
aug. 20
4429