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.
I'm still not able to modify the _get_payslip_lines() method of the file report_contribution_register.py in my own module.
I want to add a line to this method.
How to inherit (override) this method in my own module?
Example: HRIS Module
py file: hr_overtime_application.py
_inherit = 'hr.overtime.application'
def approve_all(self, cr, uid, ids, context=None): #same method name
res = super(hr_overtime_application, self).approve_all(cr, uid, ids, context)
#add the line
Hope it will help you :)
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: 1/20/16, 5:46 PM|
|Seen: 903 times|
|Last updated: 1/20/16, 10:06 PM|