From 20cbb6dc0ba20c165f2ff1e6f1bcd418729ed186 Mon Sep 17 00:00:00 2001 From: ThanhDodeurOdoo Date: Thu, 6 Dec 2018 07:43:00 +0000 Subject: Revert "[FIX] document: JS feature disabled" This reverts commit 1dbb555a Bring the sidebar attachment dropdown feature back. This feature was removed due to be considered as useless, but since some models can have attachement without a mail_thread, this feature is still necessary. task: #1908896 --- addons/document/static/tests/document_tests.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'addons/document/static/tests/document_tests.js') diff --git a/addons/document/static/tests/document_tests.js b/addons/document/static/tests/document_tests.js index 8aebe4894e0..33c081a28ac 100644 --- a/addons/document/static/tests/document_tests.js +++ b/addons/document/static/tests/document_tests.js @@ -1,10 +1,5 @@ odoo.define('document.tests', function (require) { "use strict"; - /** - * The feature tested here is disabled as it was replaced by another feature - * while still holding unfixed bugs and doing unnecessary rpc. - */ - return; var testUtils = require('web.test_utils'); var FormView = require('web.FormView'); @@ -78,6 +73,7 @@ odoo.define('document.tests', function (require) { }); assert.containsN(form.sidebar, '.o_sidebar_delete_attachment', 2, "there should be two attachments"); + testUtils.dom.click(form.sidebar.$('.o_dropdown_toggler_btn:contains("Attachment")')); testUtils.dom.click(form.sidebar.$('.o_sidebar_delete_attachment:eq(0)')); testUtils.dom.click($('.modal-footer .btn-primary')); assert.containsOnce(form.sidebar, '.o_sidebar_delete_attachment', "there should be only one attachment"); -- cgit v1.2.3