diff options
Diffstat (limited to 'addons/google_map/google_map_launch.py')
| -rw-r--r-- | addons/google_map/google_map_launch.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/google_map/google_map_launch.py b/addons/google_map/google_map_launch.py index a60679e3b69..8ee9a16fb0a 100644 --- a/addons/google_map/google_map_launch.py +++ b/addons/google_map/google_map_launch.py @@ -22,10 +22,10 @@ from osv import osv class launch_map(osv.osv): - _inherit = "res.partner.address" + _inherit = "res.partner" def open_map(self, cr, uid, ids, context=None): - address_obj= self.pool.get('res.partner.address') + address_obj= self.pool.get('res.partner') partner = address_obj.browse(cr, uid, ids, context=context)[0] url="http://maps.google.com/maps?oi=map&q=" if partner.street: |
