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.
1 of 8
More Related Content
How to Fix Field Does Not Exist Error in Odoo 17
1. How to Fix Field Does Not
Exist Error in Odoo 17
Enterprise
2. Introduction
Enterprise
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.
4. Enterprise
● Here, created a custom model and defined a field
adresss in the tree view of the model patient details.
5. Enterprise
● Let’s go the py file and there the field name given as
address in the model patient details.
6. 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.
7. 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.
8. 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