Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
5661 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
4281
1
jun 24
1772
4
abr 20
10543
1
nov 15
6716
1
oct 15
9438