Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2082 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
2715
1
nov. 21
4395
1
sept. 21
6099
1
iun. 21
3000
1
aug. 20
4507