[FIX] website: helper google_map for res.company
bzr revid: chm@openerp.com-20131114090223-2gl6y7shh6f7fplm
This commit is contained in:
parent
471d9671e7
commit
8ae07d4cba
|
@ -548,10 +548,10 @@ class res_partner(osv.osv):
|
|||
class res_company(osv.osv):
|
||||
_inherit = "res.company"
|
||||
def google_map_img(self, cr, uid, ids, zoom=8, width=298, height=298, context=None):
|
||||
partner = self.browse(cr, openerp.SUPERUSER_ID, ids[0], context=context).parent_id
|
||||
partner = self.browse(cr, openerp.SUPERUSER_ID, ids[0], context=context).partner_id
|
||||
return partner and partner.google_map_img(zoom, width, height, context=context) or None
|
||||
def google_map_link(self, cr, uid, ids, zoom=8, context=None):
|
||||
partner = self.browse(cr, openerp.SUPERUSER_ID, ids[0], context=context).parent_id
|
||||
partner = self.browse(cr, openerp.SUPERUSER_ID, ids[0], context=context).partner_id
|
||||
return partner and partner.google_map_link(zoom, context=context) or None
|
||||
|
||||
class base_language_install(osv.osv):
|
||||
|
|
Loading…
Reference in New Issue