I have a many2many field that represents a list of student. I want to only add student to that list but not remove any students from that list (in form view). Is it possible to implement that?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
1
ตอบกลับ
3818
มุมมอง
Hi Tung Nguyen,
Please note to explain which version of Odoo you are referring to. In Odoo 15 you can use Node options to define the possibility of the records delete option Many2Many fields. an example is given below :
<field name="user_ids" string="Allow users" widget="many2many" options="{'unlink': False}"/>
Regards
I'm using Odoo 14 and it worked as well.
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
15
ก.ย. 21
|
41979 | ||
|
2
ก.พ. 21
|
3080 | ||
|
1
ก.พ. 25
|
2455 | ||
|
1
ก.พ. 24
|
1950 | ||
|
0
ก.ค. 24
|
2982 |