[FIX] fields: in *2many.convert_to_cache, fix the effect of command "1"

This commit is contained in:
Raphael Collet 2014-09-15 14:41:39 +02:00
parent cfac9464a4
commit e724f3adec
1 changed files with 1 additions and 0 deletions

View File

@ -1438,6 +1438,7 @@ class _RelationalMulti(_Relational):
result += result.new(command[2])
elif command[0] == 1:
result.browse(command[1]).update(command[2])
result += result.browse(command[1]) - result
elif command[0] == 2:
# note: the record will be deleted by write()
result -= result.browse(command[1])