Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
7996 Vistas

Hey everyone, 

I have this One2many field displayed as a tree view, and I want to prevent creation and deletion of rows conditionally, but also leave the existing rows editable, so 'readonly' wont work for me.

I tried attrs="{'create': [('order_type', '!=', 'renewal)]}" same for delete, but it did not work, 

is it possible to do that form xml, without having to write some JS code ? 

thank you in advance!

Avatar
Descartar
Autor Mejor respuesta

found the solution on stackoverflow
\https://stackoverflow.com/questions/63071176/prevent-create-and-delete-on-a-one2many-tree-view/63075724#63075724

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
sept 22
1889
4
may 18
10664
4
ene 18
3167
4
dic 23
17276
1
sept 16
7148