← Back to team overview

openerp-community team mailing list archive

Re: Can we create field many2one_ref inherit the class fields.many2one

 

base_external_referentials this job has already been done and integrated
with orm

On Tue, May 15, 2012 at 3:46 AM, Robin Bahadur <robin.bahadur@xxxxxxxxx>wrote:

> Hello,
>
> I am trying to create field many2one_ref by inheriting fields.many2one
> class like
>
> class many2one_ref(fields.many2one)
>
> I check the concept at
>
> class one2many_mod2(fields.one2many)
>
> while trying i come to know that one2many and many2many field is not
> define in FIELDS_TO_PGTYPES dictionary
> inside orm. I tried that also but the getting view error. Can anybody
> suggest me where i am getting wrong.
>
> Well i am doing this to fetch the data from another database, i succeed in
> it, but i want to develop
> more generic code for community, to access data from different database.
>
> Best Regards
> Robin Bahadur
> Technical Consultant (OpenERP)
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openerp-community
> Post to     : openerp-community@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openerp-community
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References