Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
5589 Prikazi

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
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
okt. 24
4220
1
jun. 24
1643
4
apr. 20
10435
1
nov. 15
6618
1
okt. 15
9327