The migration from 16 to 17 really tires me too much, here is another error
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
In odoo 17 there is technical changes on usage of attrs .You can directly add condition for readonly, invisible,required in respected attribute.
Example:
<field name="amount_fix"
invisible="amount_select != 'fix'"
required="amount_select == 'fix'"
/>
<field colspan="4" name="amount_python_compute"
invisible="amount_select != 'code'"
required="amount_select == 'code"
/>
<field name="amount_percentage"
invisible="amount_select != 'percentage'"
required="amount_select == 'percentage'"
/>
Hope it helps.
Hello BEKOIN ETIENNE,
There is syntax change in odoo 17, Use != instead of < >

I hope above solution will help you !
Thanks,
Vimal Rughani (Founder and CTO)
Himanjali Intelligent Automation Pvt Ltd
Contact: +91- 972-606-7737
Email: hello@himanjali.com
Newsletter: The Odoo Scoop
Website: www.himanjali.com
Hi,
use this script to make changes for attrs: https://github.com/pierrelocus/odoo-attrs-replace
Odoo Attrs replacer
As Odoo changed the attrs to (no more attrs) in v17, I created this little script to help you replace all attrs in your XML files with corresponding attributes in the XML directly.
Thanks
when I run the command it doesn't work
may i know what steps you followed to run it
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
1
พ.ย. 24
|
1587 | |||
|
1
ก.ค. 24
|
1647 | |||
|
4
ม.ค. 25
|
3034 | |||
|
Selecting Locations after MO is Complete
แก้ไขแล้ว
|
1
มิ.ย. 24
|
2438 | ||
|
2
พ.ย. 25
|
3185 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.