Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
5778 Vistas

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
Mejor respuesta

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
Publicaciones relacionadas Respuestas Vistas Actividad
1
oct 24
4371
1
jun 24
1930
4
abr 20
10637
1
nov 15
6855
1
oct 15
9542