Hi Guys
I want to make the whole form view readonly when the value of state = "waiting"
How can I do this ? I tried to use fields_view_get method but I don't know how to use it in my case.
Thanks in advance !!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi Guys
I want to make the whole form view readonly when the value of state = "waiting"
How can I do this ? I tried to use fields_view_get method but I don't know how to use it in my case.
Thanks in advance !!
I dont know if you can make the whole form view readonly
you can use this to make any field readonly in a form view
<field name="your_field" attrs="{'readonly':[('state ', '!=', 'waiting')]}" />
Use this in every field.
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ść | |
|---|---|---|---|---|
|
1
maj 23
|
3608 | |||
|
2
maj 16
|
5579 | |||
|
0
wrz 24
|
4300 | |||
|
1
wrz 23
|
6466 | |||
|
1
kwi 23
|
227 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.