Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
8272 Visualizações

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
Cancelar
Autor Melhor resposta

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

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
set. 22
2096
4
mai. 18
10906
4
jan. 18
3348
4
dez. 23
17512
1
set. 16
7296