summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@openerp.com>2013-11-14 10:02:23 +0100
committerChristophe Matthieu <chm@openerp.com>2013-11-14 10:02:23 +0100
commit8ae07d4cbabfc99155a4eae5c3d22cfab19bd8da (patch)
tree9366adeeb2d885c8d982e6e0f610121fb00cf8ec
parent471d9671e79807bec31e93773fd9b7bc03a54f92 (diff)
[FIX] website: helper google_map for res.company
bzr revid: chm@openerp.com-20131114090223-2gl6y7shh6f7fplm
-rw-r--r--addons/website/models/website.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/website/models/website.py b/addons/website/models/website.py
index e34139273f1..4038965ae49 100644
--- a/addons/website/models/website.py
+++ b/addons/website/models/website.py
@@ -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):