コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5532 ビュー

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
4185
1
6月 24
1556
4
4月 20
10392
1
11月 15
6573
1
10月 15
9284