attrs="{'readonly': [('invoice_count','!=',0),('state','=','sale')]}" This is odoo 16 xml readonly attribute part, Can someone help me to convert this readonly condituion to odoo18
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
2
Odpowiedzi
321
Widoki
Hi,
Try with the following code.
<field name="your_field_name" readonly="invoice_count != 0 and state == sale)"/>
Hope it helps
readonly="invoice_count and state == 'sale'"
Podoba Ci się ta dyskusja? Dołącz do niej!
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ść | |
---|---|---|---|---|
|
0
sty 25
|
691 | ||
|
3
sie 24
|
15777 | ||
|
1
lis 19
|
3683 | ||
|
1
sie 18
|
4978 | ||
|
1
mar 15
|
4851 |