Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
8325 Zobrazení

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šit
Autor Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
zář 22
2117
4
kvě 18
10959
4
led 18
3383
4
pro 23
17572
1
zář 16
7324