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.
Create an account today to enjoy exclusive features and engage with our awesome community!
Реєстрація| Related Posts | Відповіді | Переглядів | Дія | |
|---|---|---|---|---|
|
|
1
трав. 23
|
3396 | ||
|
|
2
трав. 16
|
5440 | ||
|
|
0
вер. 24
|
4050 | ||
|
|
1
вер. 23
|
6338 | ||
|
|
1
квіт. 23
|
227 |