From 3c952772fcb0baab9b0c4c5fa49e9e3af484f641 Mon Sep 17 00:00:00 2001 From: eLBati Date: Wed, 2 Sep 2015 12:16:36 +0200 Subject: [PATCH] IMP only search for models with validator_line_ids --- base_field_validator/ir_model.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base_field_validator/ir_model.py b/base_field_validator/ir_model.py index a4f627a0a..710007573 100644 --- a/base_field_validator/ir_model.py +++ b/base_field_validator/ir_model.py @@ -65,7 +65,8 @@ class IrModel(orm.Model): """ Wrap the methods `create` and `write` of the model """ if ids is None: - ids = self.search(cr, SUPERUSER_ID, []) + ids = self.search( + cr, SUPERUSER_ID, [('validator_line_ids', '!=', False)]) updated = False for model in self.browse(cr, SUPERUSER_ID, ids): if model.validator_line_ids: