Skip to Content
Menu
This question has been flagged
1 Atsakyti
8495 Rodiniai

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!

Portretas
Atmesti
Autorius Best Answer

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
rugs. 22
2193
4
geg. 18
11128
4
saus. 18
3512
4
gruod. 23
17688
1
rugs. 16
7408