Solution to solve the an error of ‘parent class’ in customized module

company_logo (error of 'parent class' in customized module)

[Solution] to solve the error of ‘parent class’ in customized module

an error of ‘parent class’ in a customized module. As per our client’s requirement, we had to add a few functions in existing OpenERP sale module. We also implemented it by our custom module without touching the existing module.

As per our client’s requirement, we had to add a few functions in existing OpenERP sale module so we implemented it by our custom module without touching the existing module.

Usually, this is a very basic thing but sometimes in this process, we get an error. In odoo, we have a sale. order in sale module, and if we create another custom module which uses sale.order and if we don’t include the sale in the dependency of our custom module then we get this error.

TypeError: The model “sale.order” specifies an unexisting parent class “sale.order”
Above Error occurs either because you have not added module dependency in “__openerp__.py” or you have used “_inherit” instead of “_name”.
‘You may need to add a dependency on the parent class\’ module.’ % (name, parent_name))
You have to write module dependency in the __openerp__.py which contain _name=’sale.order’.

By doing this you will be able to proceed further.

To find out more about Odoo, call Nevpro Business Solutions on (022) 6673 6577 or write to us at [email protected]


Author Pic
Author Name: Diwakar Prabhu

If you would like to write to Diwakar Prabhu mail at [email protected].

Leave a Reply

Your email address will not be published. Required fields are marked *