From 97b4da489d48339b9cbadd358e0bea5bb4e56f38 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Fri, 31 Mar 2017 15:48:26 +0200 Subject: [PATCH] [FIX] test_new_api: adapt tour to new onchange semantics Onchanges triggered in a relational fields are now directly triggered on the main form view as well. This was not the case before and there were some steps (or parts of steps) checking that. --- odoo/addons/test_new_api/static/test/x2many.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/odoo/addons/test_new_api/static/test/x2many.js b/odoo/addons/test_new_api/static/test/x2many.js index 38d6ff2be67..2c0562481f5 100644 --- a/odoo/addons/test_new_api/static/test/x2many.js +++ b/odoo/addons/test_new_api/static/test/x2many.js @@ -387,10 +387,6 @@ odoo.define('web.test.x2many', function (require) { // trigger: '.o_list_view .o_selected_row td:nth(3):contains(3)', // run: function () {}, // don't blur the many2one // }, { - content: "test one2many field not triggered onchange", - trigger: '.o_content:not(:has(.o_form_textarea [name="message_concat"] textarea:propValueContains(ccc)))', - run: function () {}, // don't blur the many2one - }, { content: "open the many2one to select an other user", trigger: '.o_list_view .o_form_field_many2one[name="author"] .o_form_input_dropdown > input', run: 'text Demo', @@ -403,10 +399,6 @@ odoo.define('web.test.x2many', function (require) { // trigger: '.o_list_editable_form span.o_form_field:contains([test_trigger] Demo User)', // // trigger: '.o_list_editable_form span.o_form_field:contains([test_trigger2] Demo User)', // run: function () {}, // don't blur the many2one - }, { - content: "test one2many field not triggered onchange", - trigger: '.o_content:not(:has(.o_form_textarea[name="message_concat"] textarea:propValueContains(ccc)))', - run: function () {}, // don't blur the many2one }, { content: "change text value", trigger: '.o_form_textarea[name="body"] textarea:first', @@ -414,7 +406,6 @@ odoo.define('web.test.x2many', function (require) { }, { // check onchange content: "click outside to trigger one2many onchange", trigger: 'input.o_form_required', - extra_trigger: 'body:not(:has(.o_form_textarea[name="message_concat"] textarea:first:propValueContains(Demo User)))', run: 'click' }, { // FIXME (problem 2)