Skip to Content
Menu
This question has been flagged
1 Odpoveď
8421 Zobrazenia

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
Zrušiť
Autor Best Answer

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

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
sep 22
2159
4
máj 18
11058
4
jan 18
3454
4
dec 23
17657
1
sep 16
7376