From 7ed9a7fabeb613bf8b2c2980190399e8f9bbaa2b Mon Sep 17 00:00:00 2001 From: Yannick Tivisse Date: Thu, 26 Oct 2017 13:48:07 +0200 Subject: [REM] web_planner: Remove the module Purpose ======= User tests have been made by the Product Owners team. It showed that the planners are not used by new users on Odoo due to several reasons (They are too static, too heavy to use,...) Specification ============= Remove the module and its different applications. The onboarding on the business flow will be improvement in the weeks to come. --- .../static/src/js/web_planner_backend.js | 48 ---------------------- 1 file changed, 48 deletions(-) delete mode 100644 addons/web_planner/static/src/js/web_planner_backend.js (limited to 'addons/web_planner/static/src/js/web_planner_backend.js') diff --git a/addons/web_planner/static/src/js/web_planner_backend.js b/addons/web_planner/static/src/js/web_planner_backend.js deleted file mode 100644 index f05f34b1477..00000000000 --- a/addons/web_planner/static/src/js/web_planner_backend.js +++ /dev/null @@ -1,48 +0,0 @@ -odoo.define('web.planner', function (require) { -"use strict"; - -var core = require('web.core'); -var SystrayMenu = require('web.SystrayMenu'); -var planner = require('web.planner.common'); -var session = require('web.session'); - -var PlannerLauncher = planner.PlannerLauncher.extend({ - start: function() { - core.bus.on("change_menu_section", this, this.on_menu_clicked); - return $.when(this._super.apply(this, arguments), this._loadPlannerDef); - }, - _fetch_planner_data: function () { - var planner_by_menu = this.planner_by_menu = {}; - return this._rpc({ - model: 'web.planner', - method: 'search_read', - }) - .then(function (records) { - _.each(records, function (planner) { - planner.data = $.parseJSON(planner.data) || {}; - planner_by_menu[planner.menu_id[0]] = planner; - }); - }); - }, - on_menu_clicked: function (menu_id) { - if (this.planner_by_menu[menu_id]) { - this._setup_for_planner(this.planner_by_menu[menu_id]); - } else { - this.do_hide(); - } - }, - _update_parent_progress_bar: function (percent) { - this._super.apply(this, arguments); - this.do_show(); - }, -}); - -if (session.is_system) { - SystrayMenu.Items.push(PlannerLauncher); -} - -return { - PlannerLauncher: PlannerLauncher, -}; - -}); -- cgit v1.2.3