From 9699f510e4e6906e1a53625dfddef17fbeddf12a Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Wed, 5 Aug 2015 13:12:02 +0200 Subject: [PATCH] [FIX] res_users: fix wrong index when parsing m2m commands --- openerp/addons/base/res/res_users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/addons/base/res/res_users.py b/openerp/addons/base/res/res_users.py index e6e33871455..4670d93ef68 100644 --- a/openerp/addons/base/res/res_users.py +++ b/openerp/addons/base/res/res_users.py @@ -706,7 +706,7 @@ def parse_m2m(commands): for command in commands: if isinstance(command, (tuple, list)): if command[0] in (1, 4): - ids.append(command[2]) + ids.append(command[1]) elif command[0] == 5: ids = [] elif command[0] == 6: