hello everyone! anyone who can guide me how to convert the following code to odoo v17:
{'required':[('lawyer_type','=','lawyer')]}
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
hello everyone! anyone who can guide me how to convert the following code to odoo v17:
{'required':[('lawyer_type','=','lawyer')]}
it replace in odoo 17 attrs to required="lawyer_type == 'lawyer'" and invisible ="lawyer_type == 'lawyer'"
try this
Hello Hamza,
I hope you're doing well.
Since Odoo 17.0, the "attrs" and "states" attributes are no longer used in the Odoo View architecture.
Instead, you can now use Python expressions that evaluate to a boolean for attributes like readonly, required, and invisible.
Old Code: {'required':[('lawyer_type','=','lawyer')]}
Migrated in V17.0: required="lawyer_type == 'lawyer'"
Kindly follow the document View architecture to understand the changes in odoo version 17.0
I hope this is helpful for you.
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
I guest this is in the xml, here is the converted code
required="lawyer_type == 'lawyer' "
Hello remember my answer come first
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
0
thg 8 25
|
308 | ||
|
1
thg 1 25
|
1579 | ||
|
1
thg 11 24
|
2009 | ||
|
2
thg 9 24
|
1564 | ||
Odoo apps module
Đã xử lý
|
|
4
thg 9 24
|
2340 |