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:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
1
Reply
3801
Views
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.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
15
Sep 21
|
41959 | ||
|
2
Feb 21
|
3074 | ||
|
1
Feb 25
|
2443 | ||
|
1
Feb 24
|
1942 | ||
|
0
Jul 24
|
2965 |