[FIX] allow to call write without ids on osv_memory objects

bzr revid: chs@tinyerp.com-20091016151643-uh7a9m0lfeqajfqf
This commit is contained in:
Christophe Simonis 2009-10-16 17:16:43 +02:00
parent 3d08c9c6f0
commit 122230e73c
1 changed files with 2 additions and 0 deletions

View File

@ -1472,6 +1472,8 @@ class orm_memory(orm_template):
return result
def write(self, cr, user, ids, vals, context=None):
if not ids:
return True
vals2 = {}
upd_todo = []
for field in vals: