[FIX] portal: fix removeuser from portal

bzr revid: sbh@tinyerp.com-20120607102217-h39bm8h5x5xvfhw9
This commit is contained in:
Sbh (Openerp) 2012-06-07 15:52:17 +05:30
parent 962baf6728
commit ec16f04a8d
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ class wizard(osv.osv_memory):
portal_obj.write(cr, ROOT_UID, [wiz.portal_id.id],
{'users': [(6, 0, add_users)]}, context0)
if removeuser :
portal_obj.write(cr, ROOT_UID, [wiz.portal_id.id], {'users': [(3, removeuser[0])]}, context0)
portal_obj.write(cr, ROOT_UID, [wiz.portal_id.id], {'users': [(3,0, removeuser)]}, context0)
data = {
'company': user.company_id.name,
'message': wiz.message or "",