Skip to Content
Menu
This question has been flagged
1 Atsakyti
5534 Rodiniai

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 ?
Portretas
Atmesti
Best Answer

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
spal. 24
4185
1
birž. 24
1557
4
bal. 20
10395
1
lapkr. 15
6574
1
spal. 15
9284