How to the fix Attribute Error in odoo 17

CelineGeorge1 782 views 8 slides May 22, 2024
Slide 1
Slide 1 of 8
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8

About This Presentation

AttributeError in odoo is one of the most common errors in odoo which can be defined as the error raised when we try to access or assign an attribute that doesn’t exist in the class of the object. In this slide we will discuss on how to fix object has no attribute error in odoo 17.


Slide Content

How to fix object has no Attribute Error in Odoo 17 Enterprise

Introduction Enterpr ise AttributeError in odoo is one of the most common errors in odoo which can be defined as the error raised when we try to access or assign an attribute that doesn’t exist in the class of the object. In this slide we will discuss on how to fix object has no attribute error in odoo 17.

Enterprise Let see how to fix these errors. First we can go to the xml page of the custom module. Inside this custom module , sale order is inherited and added a button in header.

Enterprise This is the python file for the xml. And here we have not defined the action_approve function.

Enterprise After running this code we get an error message

Enterprise Let’s define the function in python

Enterprise After defining the function, we can see the error is gone.

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