Odoo Help
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.
How to solve this error KeyError: 'hr.payslip'?
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.
Hello Mohammed,
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,
'depends': ["hr_payroll"]
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.
--
Regards
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.
RegisterOdoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.
Test it nowQuestion tools
Stats
Asked: 7/1/15, 3:56 AM |
Seen: 1456 times |
Last updated: 7/7/15, 5:46 AM |
Mohammed, please paste your error here!
keyerror : 'hr.payslip'