Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
8371 Vizualizări

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!

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
sept. 22
2129
4
mai 18
10999
4
ian. 18
3424
4
dec. 23
17607
1
sept. 16
7345