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:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- المشروع
- MRP
لقد تم الإبلاغ عن هذا السؤال
1
الرد
8955
أدوات العرض
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.
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل| المنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
|---|---|---|---|---|
|
|
0
سبتمبر 20
|
3786 | ||
|
|
6
ديسمبر 19
|
19241 | ||
|
|
0
أبريل 16
|
3913 | ||
|
One2many onchange in ODOO
تم الحل
|
|
3
مارس 16
|
14981 | |
|
|
1
مارس 15
|
13340 |