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

For example

 i want to remove delete icon in tree view if state is confirm 

else user can delete order line ..... 

how i can do it by conditional 

any tip/help ?

i know 

<tree string="My Tree" delete="false"> but how i can handle by state ?
形象
丢弃
最佳答案

My suggestion is if you don't wanna need Delete Icon in Inner tree view try to make readonly that O2m field using Attrs attributes. Try below code. I'm sure It'll help you.

attrs="{'readonly': [('state', '=', 'confirm')]}"

形象
丢弃
相关帖文 回复 查看 活动
1
10月 24
4194
1
6月 24
1586
4
4月 20
10413
1
11月 15
6590
1
10月 15
9299