[FIX]google_spreadsheet: was checking if module auth_crypt was installed, to decide to display popup in the spreadsheet to ask the credentials. Now it only check if the password is empty (works for auth_crypt module and ldap module).
bzr revid: dle@openerp.com-20131017143409-m783tf5ozmotlld2
This commit is contained in:
parent
8bc3ffd234
commit
f0c49f88d0
|
@ -60,7 +60,7 @@ class config(osv.osv):
|
|||
user = self.pool['res.users'].read(cr, uid, uid, ['login', 'password'], context=context)
|
||||
username = user['login']
|
||||
password = user['password']
|
||||
if self.pool['ir.module.module'].search_count(cr, SUPERUSER_ID, ['&', ('name', '=', 'auth_crypt'), ('state', '=', 'installed')]) == 1:
|
||||
if not password:
|
||||
config_formula = '=oe_settings("%s";"%s")' % (url, dbname)
|
||||
else:
|
||||
config_formula = '=oe_settings("%s";"%s";"%s";"%s")' % (url, dbname, username, password)
|
||||
|
|
Loading…
Reference in New Issue