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?
Se marcó esta pregunta
1
Responder
3467
Vistas
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.
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Registrarse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
|
1
dic 22
|
4006 | ||
|
|
2
oct 25
|
5012 | ||
|
|
1
nov 21
|
6128 | ||
|
|
1
sept 21
|
7905 | ||
|
|
1
jun 21
|
4167 |