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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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 !"]
Do you have depends hr.payslip in openerp.py? Maybe could solve this problem.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
May 21
|
2866 | ||
|
4
Oct 19
|
8647 | ||
|
1
Jan 18
|
7893 | ||
|
1
Feb 17
|
3902 | ||
|
0
Jan 17
|
3406 |
Mohammed, please paste your error here!
keyerror : 'hr.payslip'