← Back to team overview

openerp-expert-framework team mailing list archive

Multiple inheritance problem with MRO

 

Hello we are working with hr_payroll module, so we implement another module
inherit from it.
Here is our case:

A hr_payroll (core openerp)
B hr_payroll_b (custom module) here we redefine compute_sheet method
C hr_payroll_c (another custom module) here we redefine compute_sheet again
but we need run compute_sheet redefined in B module but sytem calls method
from A.

Reading about MRO[1] in Python , i need to know how to solve this issue in
OpenERP and if system support this.

Best regards,


[1] http://python-history.blogspot.com/2010/06/method-resolution-order.html


-- 
Cristian Salamea
@ovnicraft

Follow ups