Check this example: 'title': fields.selection(_partner_title_get, 'Title', size=32),
def _partner_title_get(self, cr, uid, context={}): obj = self.pool.get('res.partner.title') ids = obj.search(cr, uid, [('domain', '=', 'partner')]) res = obj.read(cr, uid, ids, ['shortcut','name'], context) return [(r['shortcut'], r['name']) for r in res] + [('','')] I think the problem lies with what you return from your function. ------------------------ Don't thank me just spread the word about Open ERP -= http://forwardstraight.blogspot.com/ =- -------------------- m2f -------------------- -- http://www.openobject.com/forum/viewtopic.php?p=60231#60231 -------------------- m2f -------------------- _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman2/listinfo/tinyerp-users
