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?
Esta pregunta ha sido marcada
1
Responder
3481
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.
Inscribirse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
|
1
dic 22
|
4008 | ||
|
|
2
oct 25
|
5019 | ||
|
|
1
nov 21
|
6135 | ||
|
|
1
sept 21
|
7907 | ||
|
|
1
jun 21
|
4167 |