Don't call check_modify when writing only reconciliation value for issue631

This commit is contained in:
Cédric Krier committed 2008-12-01 12:49:40 +01:00
1 parent 6e63b85af0
commit 9bc54c0636
1 file changed
+2 -1
+2 -1
View File
@@ -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)