When I upgrade my custom module , this module has object inherit from hr.payslip . this object when my module upgrade the the error raised from registry module from __getitem__ function ?
How to solve this error.
You just need to add the module as in dependency of your __openerp__.py file in which "hr.payslip" class is defined. For example, hr.payslip is defined in hr_payroll module. So you need to add "hr_payroll" in "depends" key in your __openerp__.py file like as follows,
Tips : When you inherit any model, you must need to add the module in which that model is defined as inside dependency in your module.
Odoo Police ["Justice for all !"]
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 7/1/15, 3:56 AM|
|Seen: 810 times|
|Last updated: 7/7/15, 5:46 AM|