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
- Financeiro
- Inventário
- PoS
- Project
- MRP
Esta pergunta foi sinalizada
1
Responder
3809
Visualizações
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.
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-sePublicações relacionadas | Respostas | Visualizações | Atividade | |
---|---|---|---|---|
|
15
set. 21
|
41973 | ||
|
2
fev. 21
|
3080 | ||
|
1
fev. 25
|
2453 | ||
|
1
fev. 24
|
1948 | ||
|
0
jul. 24
|
2975 |