跳至内容
菜单
此问题已终结
1 回复
8541 查看

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!

形象
丢弃
编写者 最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
1
9月 22
2280
4
5月 18
11206
4
1月 18
3654
4
12月 23
17751
1
9月 16
7459