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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
1
Responder
1913
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.
InscribirsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
1
dic 22
|
2479 | ||
|
1
nov 21
|
4100 | ||
|
1
sept 21
|
5842 | ||
|
1
jun 21
|
2797 | ||
|
1
ago 20
|
4280 |