how can we unlink records from one2many without deleting ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Proyectos
- MRP
Se marcó esta pregunta
1
Responder
8952
Vistas
Hi,
First your relation field should be not required. So you can update the relation field by False to unlink association.
Example, to unlink association between an pos.order and all one2many lines:
self.env['pos.order.line'].serach([('order_id','=', order_id)]).write({'order_id':False})Best regards.
¿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 | |
|---|---|---|---|---|
|
|
0
sept 20
|
3772 | ||
|
|
6
dic 19
|
19234 | ||
|
|
0
abr 16
|
3901 | ||
|
One2many onchange in ODOO
Resuelto
|
|
3
mar 16
|
14967 | |
|
|
1
mar 15
|
13334 |