From f9c2b3796bcd3621f5c4e0a6a23f235c259a2ed7 Mon Sep 17 00:00:00 2001 From: "Divyesh Makwana (Open ERP)" Date: Tue, 18 Sep 2012 16:33:03 +0530 Subject: [REM] google_map : Removed unneccessary object references. bzr revid: mdi@tinyerp.com-20120918110303-d72pun3jc7hq0ski --- addons/google_map/google_map_launch.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'addons/google_map/google_map_launch.py') 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(' ','+') -- cgit v1.2.3 From db39306c85cdf5e209529685390fa674548b30fc Mon Sep 17 00:00:00 2001 From: "Divyesh Makwana (Open ERP)" Date: Tue, 18 Sep 2012 16:49:29 +0530 Subject: [IMP] google_map : Improved the identation. bzr revid: mdi@tinyerp.com-20120918111929-m90m7fy6gqwi3380 --- addons/google_map/google_map_launch.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'addons/google_map/google_map_launch.py') diff --git a/addons/google_map/google_map_launch.py b/addons/google_map/google_map_launch.py index 1298fac7e6f..f3ac20ac734 100644 --- a/addons/google_map/google_map_launch.py +++ b/addons/google_map/google_map_launch.py @@ -38,9 +38,9 @@ class launch_map(osv.osv): if partner.zip: url+='+'+partner.zip.replace(' ','+') return { - 'type': 'ir.actions.act_url', - 'url':url, - 'target': 'new' + 'type': 'ir.actions.act_url', + 'url':url, + 'target': 'new' } launch_map() -- cgit v1.2.3