I am converting a module from v11 to v13 and there's a relation of field one2many on a form which has attrs = "{ 'readonly': [('state', 'in', ['posted', 'canceled'])] } ".
but that one2many field is readable in any case. I have tried to remove the attrs that didnt work i even added readonly = False in python code and also readonly='0' in xml in on2many field but that field is still not editable it is showing the behavior as readonly. How can i make that editable?
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
After some R&D I have found this useful link on forum. This happens because of access rules security on the related model (the many2one).
https://www.odoo.com/forum/help-1/question/problem-with-one2many-in-odoo-12-151127
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 | |
---|---|---|---|---|
|
1
jan. 22
|
18378 | ||
|
3
jul. 19
|
5334 | ||
|
4
nov. 20
|
7772 | ||
|
0
nov. 18
|
2448 | ||
|
2
mar. 25
|
8581 |