I think it's controlled by object's name_get method. It returns name, street, 
city and zip code.

So you should override this method to get a diferent output.


    def name_get(self, cr, user, ids, 
context={}):
        if not len(ids):
            return []
        res = []
        for r in self.read(cr, user, ids, 
['name','zip','city','partner_id', 'street']):
            if context.get('contact_display', 
'contact')=='partner':
                
res.append((r['id'], 
r['partner_id'][1]))
            else:
                addr = 
r['name'] or ''
                if r['name'] 
and (r['zip'] or r['city']):
                    addr += 
', '
                addr += 
(r['street'] or '') + ' ' + (r['zip'] or '') + 
' ' + (r['city'] or '')
                
res.append((r['id'], addr.strip() or '/'))
        return res





-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=36377#36377

-------------------- m2f --------------------


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

Reply via email to