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:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Proje Yönetimi
- MRP
Bu soru işaretlendi
1
Cevapla
8943
Görünümler
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.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Ol| İlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
|---|---|---|---|---|
|
|
0
Eyl 20
|
3769 | ||
|
|
6
Ara 19
|
19229 | ||
|
|
0
Nis 16
|
3887 | ||
|
One2many onchange in ODOO
Çözüldü
|
|
3
Mar 16
|
14966 | |
|
|
1
Mar 15
|
13330 |