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

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

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')]}"

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
okt 24
4179
1
jún 24
1529
4
apr 20
10368
1
nov 15
6562
1
okt 15
9270