Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
5446 Vizualizări

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 ?
Imagine profil
Abandonează
Cel mai bun răspuns

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')]}"

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
oct. 24
4130
1
iun. 24
1436
4
apr. 20
10251
1
nov. 15
6399
1
oct. 15
9167