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
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
1
Balas
8951
Tampilan
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.
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
|
0
Sep 20
|
3772 | ||
|
How to unlink record from Ony2Many relation?
Diselesaikan
|
|
6
Des 19
|
19234 | |
|
|
0
Apr 16
|
3901 | ||
|
One2many onchange in ODOO
Diselesaikan
|
|
3
Mar 16
|
14967 | |
|
|
1
Mar 15
|
13334 |