I have a class which inherits res.partner with a functional field of type 
one2many and method=True. The method returns a dictionary of values like {1: 
[], 2: [], 3: [2, 3], 6: []}.

If I use object="res.partner.event" in the new function field tinyerp-client 
shows the expected results in a one2many_list widget.

If I use object="res.parnter.newevent", an object which inherits from 
res.partner.event, tinyerp-client displays two rows with no content in the 
one2many_list widget. This even happens if I take the class res_partner_event 
from partner/crm.py, put it in my module and rename it to res_partner_newevent.

How has a class to look like to work to work with obj="" in a funtional field? 
Are there any modules available where I can find an example?

Excuse me if this is a silly question, I'm new to openerp and even to python ;)




_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to