Skip to Content
Menu
This question has been flagged
3 Replies
2176 Views

Hi Everyone!

I am trying to convert the following odoo 13 code to odoo 17. 

                        ​{'invisible':[('requires_tracking','=', False)]}   



But i get the following errors.

Since 17.0, the "attrs" and "states" attributes are no longer used.
View: res.letter.tracking.ref in letter_tracking_ref/views/views.xml

 

Avatar
Discard
Best Answer

Hi,

In odoo 17 there is some changes in adding invisible attribute.

ie, you can use the below code

eg:

invisible = “requires_tracking =  False”


Hope it helps

Avatar
Discard
Best Answer

HI  Hamza


  • In 17 Version of odoo , the way of writing of attrs and states are changed so you have to change your code like below,


       ​invisible = “requires_tracking ==  False”   



 I hope this is helpful to you.


 Thanks & Regards,

 Email: odoo@devintellecs.com

 Skype: devintelle



Avatar
Discard
Best Answer

Hi 

You can update your code as following 

invisible="requires_tracking == False".


Regards


Avatar
Discard
Related Posts Replies Views Activity
4
May 25
1194
2
May 25
4301
1
Mar 25
655
4
Mar 25
3379
3
Feb 25
4018