Skip to Content
Menú
This question has been flagged
1 Respondre
5463 Vistes

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
Descartar
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
Descartar
Related Posts Respostes Vistes Activitat
1
d’oct. 24
4142
1
de juny 24
1458
4
d’abr. 20
10264
1
de nov. 15
6412
1
d’oct. 15
9180