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 --- .../web/static/src/js/views/graph/graph_renderer.js | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'addons/web/static/src/js/views/graph') diff --git a/addons/web/static/src/js/views/graph/graph_renderer.js b/addons/web/static/src/js/views/graph/graph_renderer.js index 5cbe3f75324..118245f997b 100644 --- a/addons/web/static/src/js/views/graph/graph_renderer.js +++ b/addons/web/static/src/js/views/graph/graph_renderer.js @@ -895,25 +895,6 @@ return AbstractRenderer.extend({ options: options, }); }, - /** - * @private - */ - _renderNoContentHelper: function (context) { - let templateName; - if (!context && this.noContentHelp) { - templateName = "web.ActionHelper"; - context = { noContentHelp: this.noContentHelp }; - } else { - templateName = "web.NoContentHelper"; - } - const template = document.createElement('template'); - // FIXME: retrieve owl qweb instance via the env set on Component s.t. - // it also works in the tests (importing 'web.env' wouldn't). This won't - // be necessary as soon as this rendering will be written in owl. - const OwlQweb = owl.Component.env.qweb; - template.innerHTML = OwlQweb.renderToString(templateName, context); - this.el.append(template.content.firstChild); - }, /** * create pie chart * -- cgit v1.2.3