Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
5419 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
1
oct. 24
4121
1
juin 24
1412
4
avr. 20
10225
1
nov. 15
6373
1
oct. 15
9143