← Back to team overview

openerp-expert-framework team mailing list archive

Re: calling super() super()

 

nope bases bring me directly to the osv.Model

as __mro__ is also not recommended... I'm afraid that I'll have to do a
dirty hack in the concerned module.




2013/1/16 Денис Каратаев <dskarataev@xxxxxxxxx>

> So Houssine, did you find decision?
>
>
> 2013/1/14 Mohammad Alhashash <alhashash@xxxxxxxxxxxxx>
>
>> Do you mean __bases__ attribute?
>>
>>
>> On 14-Jan-13 11:45 AM, Jerzy Orłowski wrote:
>>
>>> look for bases() function
>>>
>>> W dniu 14.01.2013 10:35, Houssine BAKKALI pisze:
>>>
>>>> Hi There,
>>>>
>>>> I'm facing some difficulties wiht the OpenERP inheritance system.
>>>>
>>>> I want to override the create function of the res.partner.bank. This
>>>> function is already overrided by the account_iban addons.
>>>>
>>>> So in the inheritance schema is as following :
>>>>
>>>> my create function => account_iban create function => account_bank
>>>> create function => res_bank create function
>>>>
>>>> I want to by pass the account_iban create function and call the
>>>> account_bank one as if I had replaced the account_iban function.
>>>>
>>>> Does the inheritance mechanism allow that?
>>>>
>>>> Thanks for your help!
>>>>
>>>> Kind regards,
>>>> Houssine
>>>>
>>>>
>>>> ______________________________**_________________
>>>> Mailing list:https://launchpad.net/~**openerp-expert-framework<https://launchpad.net/~openerp-expert-framework>
>>>> Post to     :openerp-expert-framework@**lists.launchpad.net<openerp-expert-framework@xxxxxxxxxxxxxxxxxxx>
>>>> Unsubscribe :https://launchpad.net/~**openerp-expert-framework<https://launchpad.net/~openerp-expert-framework>
>>>> More help   :https://help.launchpad.net/**ListHelp<https://help.launchpad.net/ListHelp>
>>>>
>>>
>>>
>>> --
>>>
>>> Pozdrawiam serdecznie,
>>>
>>> Jerzy Orłowski
>>>
>>> Członek Zarządu ds. technologii
>>> Al. Stanów Zjednoczonych 53
>>> 04-028 Warszawa
>>> tel. +48 (22) 266 01 02
>>> tel. +48 (22) 292 16 16
>>> kom. 668 151 245
>>> www.lacan.com.pl
>>>
>>>
>>> ______________________________**_________________
>>> Mailing list: https://launchpad.net/~**openerp-expert-framework<https://launchpad.net/~openerp-expert-framework>
>>> Post to     : openerp-expert-framework@**lists.launchpad.net<openerp-expert-framework@xxxxxxxxxxxxxxxxxxx>
>>> Unsubscribe : https://launchpad.net/~**openerp-expert-framework<https://launchpad.net/~openerp-expert-framework>
>>> More help   : https://help.launchpad.net/**ListHelp<https://help.launchpad.net/ListHelp>
>>>
>>
>>
>> ______________________________**_________________
>> Mailing list: https://launchpad.net/~**openerp-expert-framework<https://launchpad.net/~openerp-expert-framework>
>> Post to     : openerp-expert-framework@**lists.launchpad.net<openerp-expert-framework@xxxxxxxxxxxxxxxxxxx>
>> Unsubscribe : https://launchpad.net/~**openerp-expert-framework<https://launchpad.net/~openerp-expert-framework>
>> More help   : https://help.launchpad.net/**ListHelp<https://help.launchpad.net/ListHelp>
>>
>
>
>
> --
> Денис Каратаев.
> _______________________________________________
> 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