[FIX] res_users: fix wrong index when parsing m2m commands
This commit is contained in:
parent
91417516ae
commit
9699f510e4
|
@ -706,7 +706,7 @@ def parse_m2m(commands):
|
||||||
for command in commands:
|
for command in commands:
|
||||||
if isinstance(command, (tuple, list)):
|
if isinstance(command, (tuple, list)):
|
||||||
if command[0] in (1, 4):
|
if command[0] in (1, 4):
|
||||||
ids.append(command[2])
|
ids.append(command[1])
|
||||||
elif command[0] == 5:
|
elif command[0] == 5:
|
||||||
ids = []
|
ids = []
|
||||||
elif command[0] == 6:
|
elif command[0] == 6:
|
||||||
|
|
Loading…
Reference in New Issue