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 ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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 ?
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')]}"
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
Ordering Line Items
Rozwiązane
|
|
1
paź 24
|
4135 | |
|
1
cze 24
|
1441 | ||
|
4
kwi 20
|
10255 | ||
|
1
lis 15
|
6402 | ||
|
1
paź 15
|
9173 |