summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorDivyesh Makwana (Open ERP) <mdi@tinyerp.com>2012-09-18 16:33:03 +0530
committerDivyesh Makwana (Open ERP) <mdi@tinyerp.com>2012-09-18 16:33:03 +0530
commitf9c2b3796bcd3621f5c4e0a6a23f235c259a2ed7 (patch)
tree3dfef3faa1d1717f82e80f4920ce979df9cdba35 /addons
parent67f1ac5053c4afe72aa7b3ba284cf6ba82575e21 (diff)
[REM] google_map : Removed unneccessary object references.
bzr revid: mdi@tinyerp.com-20120918110303-d72pun3jc7hq0ski
Diffstat (limited to 'addons')
-rw-r--r--addons/google_map/google_map_launch.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/google_map/google_map_launch.py b/addons/google_map/google_map_launch.py
index 8ee9a16fb0a..1298fac7e6f 100644
--- a/addons/google_map/google_map_launch.py
+++ b/addons/google_map/google_map_launch.py
@@ -25,8 +25,7 @@ class launch_map(osv.osv):
_inherit = "res.partner"
def open_map(self, cr, uid, ids, context=None):
- address_obj= self.pool.get('res.partner')
- partner = address_obj.browse(cr, uid, ids, context=context)[0]
+ partner = self.browse(cr, uid, ids, context=context)[0]
url="http://maps.google.com/maps?oi=map&q="
if partner.street:
url+=partner.street.replace(' ','+')