From 67f1ac5053c4afe72aa7b3ba284cf6ba82575e21 Mon Sep 17 00:00:00 2001 From: "Divyesh Makwana (Open ERP)" Date: Tue, 18 Sep 2012 16:28:56 +0530 Subject: [ADD] google_map : Added a functionality to open a google map based on partner's address. bzr revid: mdi@tinyerp.com-20120918105856-gyam9rsxo3jp4okr --- addons/google_map/__openerp__.py | 4 +++- addons/google_map/google_map_view.xml | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 addons/google_map/google_map_view.xml (limited to 'addons/google_map') diff --git a/addons/google_map/__openerp__.py b/addons/google_map/__openerp__.py index f5577b17994..36a10355990 100644 --- a/addons/google_map/__openerp__.py +++ b/addons/google_map/__openerp__.py @@ -33,7 +33,9 @@ Using this you can directly open Google Map from the URL widget.""", 'website': 'http://www.openerp.com', 'images': ['images/google_map.jpeg'], 'depends': ['base'], - 'data': [], + 'data': [ + 'google_map_view.xml' + ], 'demo': [], 'js': ['static/src/js/google_map.js'], 'installable': True, diff --git a/addons/google_map/google_map_view.xml b/addons/google_map/google_map_view.xml new file mode 100644 index 00000000000..46cf9d48807 --- /dev/null +++ b/addons/google_map/google_map_view.xml @@ -0,0 +1,22 @@ + + + + + + res.partner.google.map.inherit + res.partner + + + + + + + + + + -- cgit v1.2.3 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') 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') 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 From e9f4840c9376ca82bef5b0e2a234c0c42067fc14 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Wed, 26 Sep 2012 14:16:27 +0200 Subject: [IMP] emoving bad code, no invitation system on events [IMP] no more certifiate, will be managed in apps.openerp.com directly bzr revid: fp@tinyerp.com-20120926121627-60isym4hdjkaxe9p --- addons/google_map/__openerp__.py | 1 - 1 file changed, 1 deletion(-) (limited to 'addons/google_map') diff --git a/addons/google_map/__openerp__.py b/addons/google_map/__openerp__.py index 36a10355990..e1963e3f8f4 100644 --- a/addons/google_map/__openerp__.py +++ b/addons/google_map/__openerp__.py @@ -40,6 +40,5 @@ Using this you can directly open Google Map from the URL widget.""", 'js': ['static/src/js/google_map.js'], 'installable': True, 'auto_install': False, - 'certificate': '0029498930765', } # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: -- cgit v1.2.3