Skip to Content
Menu
This question has been flagged
1 Reply
5667 Views

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
Discard
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
Discard
Related Posts Replies Views Activity
1
Oct 24
4291
1
Jun 24
1778
4
Apr 20
10546
1
Nov 15
6737
1
Oct 15
9443