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?
Cette question a été signalée
1
Répondre
3471
Vues
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.
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
|
1
déc. 22
|
4006 | ||
|
|
2
oct. 25
|
5012 | ||
|
|
1
nov. 21
|
6129 | ||
|
|
1
sept. 21
|
7906 | ||
|
|
1
juin 21
|
4167 |