← Back to team overview

openerp-community team mailing list archive

Can we create field many2one_ref inherit the class fields.many2one

 

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)

Follow ups