This slide will represent how to fix the error field does not exist in a model in Odoo 17. So if you got an error field does not exist it typically means that you are trying to refer a field that doesn’t exist in the model or view.
Size: 409.88 KB
Language: en
Added: Jul 19, 2024
Slides: 8 pages
Slide Content
How to Fix Field Does Not Exist Error in Odoo 17 Enterprise
Introduction Enterpr ise This slide will represent how to fix the error field does not exist in a model in Odoo 17. So if you got an error field does not exist it typically means that you are trying to refer a field that doesn’t exist in the model or view.
Enterprise Let’s solve the error.
Enterprise Here, created a custom model and defined a field adresss in the tree view of the model patient details.
Enterprise Let’s go the py file and there the field name given as address in the model patient details.
Enterprise The given field name is wrong under the tree view for the model patient details. So, give the field name address on the xml view which is same as given on the py file.
Enterprise Then run the pycharm and upgrade the module. Now the error has been resolved since the field names in the Python file and the XML file are the same. You will also see the same problem if a field is added to the XML view without being defined on the model in the py file. The field name should be the same in both the model and XML views. So this is how we can fix the error field does not exist in Odoo 17.
For More Info. Check our company website for related blogs and Odoo book. Check our YouTube channel for functional and technical videos in Odoo. Enterprise www.cybrosys.com