[FIX] At the end of the database creation polling, None passwords are no more returned (for e.g. the portaluser).

bzr revid: vmt@openerp.com-20130131130447-3obyq2ch2omerypo
This commit is contained in:
Vo Minh Thu 2013-01-31 14:04:47 +01:00
parent 2910d5b3f6
commit 7b789f0865
1 changed files with 4 additions and 0 deletions

View File

@ -140,6 +140,10 @@ def exp_get_progress(id):
clean = self_actions[id]['clean']
if clean:
users = self_actions[id]['users']
for user in users:
# Remove the None passwords as they can't be marshalled by XML-RPC.
if user['password'] is None:
user['password'] = ''
self_actions.pop(id)
return 1.0, users
else: