summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-11-29 20:55:58 +0100
committerChristophe Simonis <chs@odoo.com>2018-11-29 20:55:58 +0100
commitb6e94c3e4da31008c100626da1c106b6db4e6e77 (patch)
treef17bf8c37f61bbf74d6e7ddbc2f9b16d27d8034a /addons/web/static/tests/fields
parentce4cc24621bf6430d7d3a2d469b375b59120c200 (diff)
[FIX] web: correct test definition
Oversight of previous forward-port
Diffstat (limited to 'addons/web/static/tests/fields')
-rw-r--r--addons/web/static/tests/fields/relational_fields_tests.js7
1 files 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