Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
331 Zobrazení
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
Avatar
Zrušit
Nejlepší odpověď

Hi,


Try with the following code.

<field name="your_field_name" readonly="invoice_count != 0 and state == sale)"/>


Hope it helps

Avatar
Zrušit
Nejlepší odpověď
readonly="invoice_count and state == 'sale'"
Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
led 25
693
3
srp 24
15786
1
lis 19
3689
1
srp 18
4979
1
bře 15
4855