From 9bc54c06365b578f87a67bd60c808cfe365072bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 1 Dec 2008 12:49:40 +0100 Subject: [PATCH] Don't call check_modify when writing only reconciliation value for issue631 --- move.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/move.py b/move.py index ecd0c709a6..c1ab084393 100644 --- a/move.py +++ b/move.py @@ -1094,7 +1094,8 @@ class Line(OSV): if isinstance(ids, (int, long)): ids = [ids] - self.check_modify(cursor, user, ids, context=context) + if len(vals) > 1 or 'reconciliation' not in vals: + self.check_modify(cursor, user, ids, context=context) lines = self.browse(cursor, user, ids, context=context) move_ids = [x.move.id for x in lines] res = super(Line, self).write(cursor, user, ids, vals, context=context)