From 644aeb2cd6ec813221a0ebe221c33e19c4065438 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Thu, 21 Feb 2019 17:47:46 +0100 Subject: [PATCH] [FIX] test_testing_utilities: correct on_change Avoid searching `[('name', 'ilike', False)]` as it doesn't make any sense (and behavior changed in saas~12.1) --- odoo/addons/test_testing_utilities/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/addons/test_testing_utilities/models.py b/odoo/addons/test_testing_utilities/models.py index ffb27cd08d8..324b8d62c9f 100644 --- a/odoo/addons/test_testing_utilities/models.py +++ b/odoo/addons/test_testing_utilities/models.py @@ -71,7 +71,7 @@ class M2Onchange(models.Model): def _on_change_f2(self): self.f = self.env['test_testing_utilities.m2o'].search([ ('name', 'ilike', self.f2), - ], limit=1) + ], limit=1) if self.f2 else False class M2MChange(models.Model): _name = 'test_testing_utilities.e'