Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
5546 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
4188
1
jun 24
1569
4
abr 20
10398
1
nov 15
6582
1
oct 15
9291