Hi,
How to make a field readonly based on some condition? For instance i want to make fields readonly on form load based on some values from another table.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
How to make a field readonly based on some condition? For instance i want to make fields readonly on form load based on some values from another table.
Hello Binyam Assefa ,
To make readonly field based on condition you can use "attrs" attribute in field tag as follows :
<field name="field_name" attrs="{'readonly' : [domain]}"/>
Hope this will work for you.
Thanks!
Thanks Jainesh Shah,
So i have to declare fields that contains some calculated values from another domains to use it here in the current view.
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ść | |
---|---|---|---|---|
readonly option in fields?
Rozwiązane
|
|
3
gru 23
|
90947 | |
|
3
wrz 21
|
5075 | ||
|
1
wrz 15
|
8933 | ||
|
4
kwi 25
|
5204 | ||
|
3
lip 23
|
5690 |