Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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 !"]
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 7/1/15, 3:56 AM|
|Seen: 1350 times|
|Last updated: 7/7/15, 5:46 AM|