diff options
| author | DBR (OpenERP) <dbr@tinyerp.com> | 2011-06-13 15:11:49 +0530 |
|---|---|---|
| committer | DBR (OpenERP) <dbr@tinyerp.com> | 2011-06-13 15:11:49 +0530 |
| commit | 7b3233f9135e90b78d5eb01ebdebb74c5086a65f (patch) | |
| tree | de6da4a2826196823f0e0100b63a5c9fc6310d59 /addons/import_google/wizard/import_google_data.py | |
| parent | 27c02a115e47b4c278b636d8a90d750f0644e88d (diff) | |
[IMP]import_google : propar authentication
bzr revid: dbr@tinyerp.com-20110613094149-8jfqf64vylfnrflc
Diffstat (limited to 'addons/import_google/wizard/import_google_data.py')
| -rw-r--r-- | addons/import_google/wizard/import_google_data.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/import_google/wizard/import_google_data.py b/addons/import_google/wizard/import_google_data.py index 813cdc1d3e7..2f814708a74 100644 --- a/addons/import_google/wizard/import_google_data.py +++ b/addons/import_google/wizard/import_google_data.py @@ -120,11 +120,11 @@ class synchronize_google_contact(osv.osv_memory): sup = obj.supplier tables=[] user_obj = self.pool.get('res.users').browse(cr, uid, uid) - if not gmail_user or not gmail_pwd: - raise osv.except_osv(_('Error'), _("Invalid login detail !\n Specify Username/Password.")) - + gmail_user = user_obj.gmail_user gmail_pwd = user_obj.gmail_password + if not gmail_user or not gmail_pwd: + raise osv.except_osv(_('Error'), _("Invalid login detail !\n Specify Username/Password.")) google = self.pool.get('google.login') gd_client = google.google_login(gmail_user, gmail_pwd, type='contact') |
