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?
Această întrebare a fost marcată
1
Răspunde
3474
Vizualizări
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
thanks a lot.
Îți place discuția? Nu doar citi, alătură-te!
Creează-ți un cont astăzi pentru a beneficia de funcții exclusive și a interacționa cu minunata noastră comunitate!
Înscrie-te| Postări similare | Răspunsuri | Vizualizări | Activitate | |
|---|---|---|---|---|
|
|
1
dec. 22
|
4006 | ||
|
|
2
oct. 25
|
5012 | ||
|
|
1
nov. 21
|
6132 | ||
|
|
1
sept. 21
|
7906 | ||
|
|
1
iun. 21
|
4167 |