diff --git a/addons/account/static/tests/reconciliation_tests.js b/addons/account/static/tests/reconciliation_tests.js index cf149648b1a..7ebffc19e94 100644 --- a/addons/account/static/tests/reconciliation_tests.js +++ b/addons/account/static/tests/reconciliation_tests.js @@ -941,11 +941,11 @@ QUnit.module('account', { // Simulate changing partner with SelectCreateDialog widget = clientAction.widgets[1]; - assert.strictEqual($('[role="dialog"]').length, 0, "shouldn't have any opened modal"); + assert.strictEqual($('.modal').length, 0, "shouldn't have any opened modal"); widget.$('.o_input_dropdown input').trigger('click'); $('.ui-autocomplete .ui-menu-item a:contains(Search More):eq(1)').trigger('mouseenter').trigger('click'); - assert.strictEqual($('[role="dialog"]').length, 1, "should open a SelectCreateDialog"); - $('[role="dialog"] table.o_list_view td:contains(Camptocamp)').click(); + assert.strictEqual($('.modal').length, 1, "should open a SelectCreateDialog"); + $('.modal table.o_list_view td:contains(Camptocamp)').click(); assert.strictEqual(widget.$('.o_input_dropdown input').val(), "Camptocamp", "the partner many2one should display Camptocamp"); widget = clientAction.widgets[2]; @@ -1100,7 +1100,7 @@ QUnit.module('account', { widget.$('.create .create_account_id input').trigger('click'); $('.ui-autocomplete .ui-menu-item a:contains(Search)').trigger('mouseenter').trigger('click'); // select the account who does not appear in the drop drown - $('[role="dialog"] tr.o_data_row:contains(502)').click(); + $('.modal tr.o_data_row:contains(502)').click(); assert.strictEqual(widget.$('.create .create_account_id input').val(), "101200 Account Receivable", "Selected account does not change"); // wait the name_get to render the changes def.resolve(); diff --git a/addons/barcodes/static/src/js/barcode_form_view.js b/addons/barcodes/static/src/js/barcode_form_view.js index 9a09480558b..15e27498f94 100644 --- a/addons/barcodes/static/src/js/barcode_form_view.js +++ b/addons/barcodes/static/src/js/barcode_form_view.js @@ -349,7 +349,7 @@ FormController.include({ } // only catch the event if we're not focused in // another field and it's a number - if (!$(event.target).is('body, [role="dialog"]') || !/[0-9]/.test(character)) { + if (!$(event.target).is('body, .modal') || !/[0-9]/.test(character)) { return; } diff --git a/addons/barcodes/static/tests/barcode_tests.js b/addons/barcodes/static/tests/barcode_tests.js index e6efcbe35a0..142fc0feca3 100644 --- a/addons/barcodes/static/tests/barcode_tests.js +++ b/addons/barcodes/static/tests/barcode_tests.js @@ -468,12 +468,12 @@ QUnit.test('specification of widget barcode_handler with keypress and notifyChan setTimeout(function () { var keycode = $.ui.keyCode.ENTER; - assert.strictEqual($('main.modal-body').length, 1, 'should open a modal with a quantity as input'); - assert.strictEqual($('main.modal-body .o_set_qty_input').val(), '5', 'the quantity by default in the modal shoud be 5'); + assert.strictEqual($('.modal .modal-body').length, 1, 'should open a modal with a quantity as input'); + assert.strictEqual($('.modal .modal-body .o_set_qty_input').val(), '5', 'the quantity by default in the modal shoud be 5'); - $('main.modal-body .o_set_qty_input').val('7'); + $('.modal .modal-body .o_set_qty_input').val('7'); - $('main.modal-body .o_set_qty_input').trigger($.Event('keypress', {which: keycode, keyCode: keycode})); + $('.modal .modal-body .o_set_qty_input').trigger($.Event('keypress', {which: keycode, keyCode: keycode})); assert.strictEqual(form.$('.o_data_row .o_data_cell:nth(1)').text(), '7', "quantity checked should be 7"); @@ -524,7 +524,7 @@ QUnit.test('barcode_scanned only trigger error for active view', function (asser form.$('.o_data_row:first').click(); - // We do not trigger on the body since modal and + // We do not trigger on the body since modal and // form view are both inside it. function modalTriggerKeypressEvent(char) { var keycode; @@ -533,7 +533,7 @@ QUnit.test('barcode_scanned only trigger error for active view', function (asser } else { keycode = char.charCodeAt(0); } - return $('[role="dialog"]').trigger($.Event('keypress', {which: keycode, keyCode: keycode})); + return $('.modal').trigger($.Event('keypress', {which: keycode, keyCode: keycode})); } _.each(['O','-','B','T','N','.','c','a','n','c','e','l','Enter'], modalTriggerKeypressEvent); assert.verifySteps(['warning'], "only one event should be triggered"); diff --git a/addons/base_setup/views/res_config_settings_views.xml b/addons/base_setup/views/res_config_settings_views.xml index 82bfe8b4dca..53badf36843 100644 --- a/addons/base_setup/views/res_config_settings_views.xml +++ b/addons/base_setup/views/res_config_settings_views.xml @@ -120,8 +120,11 @@
You will be able to customize your followup activities. Examples:
Select a standard activity for now.
"), position: "bottom", run: function (actions) { - actions.auto('footer.modal-footer button[special=cancel]'); + actions.auto('.modal-footer button[special=cancel]'); }, }, { trigger: ".o_kanban_record", diff --git a/addons/document/static/tests/document_tests.js b/addons/document/static/tests/document_tests.js index 111beeca841..338f3e75581 100644 --- a/addons/document/static/tests/document_tests.js +++ b/addons/document/static/tests/document_tests.js @@ -70,7 +70,7 @@ odoo.define('document.tests', function (require) { assert.strictEqual(form.sidebar.$('.o_sidebar_delete_attachment').length, 2, "there should be two attachments"); form.sidebar.$('.o_sidebar_delete_attachment:eq(0)').click(); - $('footer.modal-footer .btn-primary').click(); + $('.modal-footer .btn-primary').click(); assert.strictEqual(form.sidebar.$('.o_sidebar_delete_attachment').length, 1, "there should be only one attachment"); form.destroy(); }); diff --git a/addons/im_livechat/static/src/xml/im_livechat_backend.xml b/addons/im_livechat/static/src/xml/im_livechat_backend.xml index 60b25bf2746..deb4c6be4de 100644 --- a/addons/im_livechat/static/src/xml/im_livechat_backend.xml +++ b/addons/im_livechat/static/src/xml/im_livechat_backend.xml @@ -17,7 +17,8 @@CHANGE