summaryrefslogtreecommitdiff
path: root/odoo/addons/test_testing_utilities
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2019-03-22 08:02:15 +0000
committerXavier Morel <xmo@odoo.com>2019-04-01 10:34:47 +0000
commit7e0b29cbcdaa324e342d6877dd220749b8211771 (patch)
tree683abee4280fe2e92f2bcc6b038c00b77feb5719 /odoo/addons/test_testing_utilities
parent295690ce70f972386be1170dabb7cab5a16e7c05 (diff)
[FIX] core: backport changes in 12.1/master to 12.0
PRs #28645 and #31494 were not applied to 12.0, but there's no reason not to, they should only fix things (make behaviours more in-line with the regular client), and since o2m is an area where more fixes are needed and it would be nice to have them in 12.0...
Diffstat (limited to 'odoo/addons/test_testing_utilities')
-rw-r--r--odoo/addons/test_testing_utilities/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/addons/test_testing_utilities/models.py b/odoo/addons/test_testing_utilities/models.py
index dee6dff08fb..fbdec47a7cf 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'