From bb9ef004524e21c642abdff16aa6caa9abbb37ba Mon Sep 17 00:00:00 2001 From: Dhruv Patel Date: Mon, 29 Jun 2020 10:02:25 +0000 Subject: [IMP] web: support action helper on gantt view Currently, only List and Kanban view supports the action helper and display the folder icon with the helper text. With this commit we have also provided the action helper support for other views. The logic for no content helper has been moved in abstract_renderer.js so that it can be accessed by all views. This was done mainly to give the action helper to the gantt view. closes odoo/odoo#53902 Task: 2284779 Related: odoo/enterprise#11563 Signed-off-by: Mathieu Duckerts-Antoine Co-authored-by: Mathieu Duckerts-Antoine Co-authored-by: Mohammed Shekha --- addons/web/static/src/js/views/basic/basic_renderer.js | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'addons/web/static/src/js/views/basic/basic_renderer.js') diff --git a/addons/web/static/src/js/views/basic/basic_renderer.js b/addons/web/static/src/js/views/basic/basic_renderer.js index d0778ded0fd..b324d2ea772 100644 --- a/addons/web/static/src/js/views/basic/basic_renderer.js +++ b/addons/web/static/src/js/views/basic/basic_renderer.js @@ -761,22 +761,6 @@ var BasicRenderer = AbstractRenderer.extend(WidgetAdapterMixin, { return $el; }, - /** - * Renders the nocontent helper. - * - * This method is a helper for renderers that want to display a help - * message when no content is available. - * - * @private - * @returns {jQueryElement} - */ - _renderNoContentHelper: function () { - var $noContent = - $('
').html(this.noContentHelp).addClass('o_nocontent_help'); - return $('
') - .addClass('o_view_nocontent') - .append($noContent); - }, /** * Instantiate custom widgets * -- cgit v1.2.3