← Back to team overview

openerp-expert-framework team mailing list archive

Re: calling super() super()

 

Le 16/01/2013 22:00, Jerzy Or?owski a écrit :
a=self.__class__.__bases__[0]
b=a.__bases__[0]
result = super(b, self).create()

Seems to be working
One thing I noticed when developing 2 modules with models that inherit from the same base model, is that the order in which they are "stacked" is not predictable (depends on which module is loaded/installed first).
So, I think you can't count on the super-super class to be what you think...
Lionel Sausin.

Follow ups

References