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

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

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

As per our client’s requirement, we had to add a few functions to the 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 ERP, we have a sale. order in the sale module, and if we create another custom module that 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.

Odoo ERP is the best ERP software for manufacturing and therefore the best ERP solutions for small business. We offer customization and implementation of ERP system. Nevpro business solutions is one of the top ERP Development companies worldwide.

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

Leave a Reply