From 122230e73c8e863a3b405741d2495198abb24d22 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Fri, 16 Oct 2009 17:16:43 +0200 Subject: [PATCH] [FIX] allow to call write without ids on osv_memory objects bzr revid: chs@tinyerp.com-20091016151643-uh7a9m0lfeqajfqf --- bin/osv/orm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index 73015df..652bcaf 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -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: -- 1.7.10.4