summaryrefslogtreecommitdiff
path: root/addons/google_map/wizard/google_map_launch.py
diff options
context:
space:
mode:
authoruco (OpenERP) <uco@tinyerp.com>2010-11-19 19:18:01 +0530
committeruco (OpenERP) <uco@tinyerp.com>2010-11-19 19:18:01 +0530
commit12fcd1be2f1a891b7fe099ad0044e68c45280907 (patch)
treef60c92735fb1f9bde88b4affe5fa513b5e460570 /addons/google_map/wizard/google_map_launch.py
parent58e9ba97bbe188438cb67c1f59292f9b4d1de1c5 (diff)
[IMP] : Added context=None on methods used for _constraints and replaced context={} with context=None.
bzr revid: uco@tinyerp.com-20101119134801-974ev29j4tu46pq2
Diffstat (limited to 'addons/google_map/wizard/google_map_launch.py')
-rw-r--r--addons/google_map/wizard/google_map_launch.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/google_map/wizard/google_map_launch.py b/addons/google_map/wizard/google_map_launch.py
index 12ab32fbf54..6ae9c19d2ce 100644
--- a/addons/google_map/wizard/google_map_launch.py
+++ b/addons/google_map/wizard/google_map_launch.py
@@ -25,9 +25,11 @@ import pooler
from osv import fields
import time
-def _launch_wizard(self, cr, uid, data, context):
+def _launch_wizard(self, cr, uid, data, context=None):
+ if not context:
+ context = {}
address_obj= pooler.get_pool(cr.dbname).get('res.partner.address')
- m= address_obj.browse(cr,uid,data['id'],context)
+ m= address_obj.browse(cr, uid, data['id'], context=context)
url=''
url="http://maps.google.com/maps?oi=map&q="
if m.street: