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 :)
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: 1/20/16, 5:46 PM|
|Seen: 457 times|
|Last updated: 1/20/16, 10:06 PM|