Browse Source

FIX _wrap_write return value

pull/246/head
eLBati 9 years ago
parent
commit
bea6bb4b04
  1. 4
      base_field_validator/ir_model.py

4
base_field_validator/ir_model.py

@ -56,8 +56,8 @@ class IrModel(orm.Model):
def _wrap_write(self, old_write, model): def _wrap_write(self, old_write, model):
def wrapper(cr, uid, ids, vals, context=None, **kwargs): def wrapper(cr, uid, ids, vals, context=None, **kwargs):
self.check_vals(cr, uid, vals, model, context=context) 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 return wrapper

Loading…
Cancel
Save