[IMP]import_google : propar authentication

bzr revid: dbr@tinyerp.com-20110613094149-8jfqf64vylfnrflc
This commit is contained in:
DBR (OpenERP) 2011-06-13 15:11:49 +05:30
parent 27c02a115e
commit 7b3233f913
1 changed files with 3 additions and 3 deletions

View File

@ -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')