← Back to team overview

openerp-expert-framework team mailing list archive

Re: calling super() super()

 

Indeed this subject has been already discussed:
http://forum.openerp.com/forum/topic13034.html
http://forum.openerp.com/forum/topic12962.html

Le 17/01/13 09:42, "Lionel Sausin, de la part de l'équipe informatique Numérigraphe" a écrit :
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.


_______________________________________________
Mailing list: https://launchpad.net/~openerp-expert-framework
Post to     : openerp-expert-framework@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openerp-expert-framework
More help   : https://help.launchpad.net/ListHelp


References