From b6e94c3e4da31008c100626da1c106b6db4e6e77 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Thu, 29 Nov 2018 20:55:58 +0100 Subject: [PATCH] [FIX] web: correct test definition Oversight of previous forward-port --- addons/web/static/tests/fields/relational_fields_tests.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/addons/web/static/tests/fields/relational_fields_tests.js b/addons/web/static/tests/fields/relational_fields_tests.js index 8d23dafe4f4..b0f470d9592 100644 --- a/addons/web/static/tests/fields/relational_fields_tests.js +++ b/addons/web/static/tests/fields/relational_fields_tests.js @@ -193,9 +193,6 @@ QUnit.module('relational_fields', { }); - form.destroy(); - }); - QUnit.test('one2many from a model that has been sorted', function (assert) { assert.expect(1); @@ -227,6 +224,10 @@ QUnit.module('relational_fields', { assert.strictEqual(form.$('.o_field_one2many[name=turtles] tbody').text().trim(), "kawablip", 'The o2m should not have been sorted.'); + + form.destroy(); + }); + QUnit.test('onchange on unloaded record clearing posterious change', function (assert) { // when we got onchange result for fields of record that were not // already available because they were in a inline view not already