From bea6bb4b04fbce577a2753cd8a86613fdf5984ba Mon Sep 17 00:00:00 2001 From: eLBati Date: Wed, 2 Sep 2015 11:08:21 +0200 Subject: [PATCH] FIX _wrap_write return value --- base_field_validator/ir_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base_field_validator/ir_model.py b/base_field_validator/ir_model.py index 1b2bd5960..a4f627a0a 100644 --- a/base_field_validator/ir_model.py +++ b/base_field_validator/ir_model.py @@ -56,8 +56,8 @@ class IrModel(orm.Model): def _wrap_write(self, old_write, model): def wrapper(cr, uid, ids, vals, context=None, **kwargs): self.check_vals(cr, uid, vals, model, context=context) - old_write(cr, uid, ids, vals, context=context, **kwargs) - return True + res = old_write(cr, uid, ids, vals, context=context, **kwargs) + return res return wrapper