Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
5998 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
ott 24
4577
1
giu 24
2195
4
apr 20
10959
1
nov 15
7144
1
ott 15
9792