diff options
| author | Yannick Tivisse <yti@odoo.com> | 2017-10-26 13:48:07 +0200 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2017-10-26 16:14:21 +0200 |
| commit | 7ed9a7fabeb613bf8b2c2980190399e8f9bbaa2b (patch) | |
| tree | c209b714375213a90f050098a5a51b7a9f275433 /addons/web_planner/static/src/js/web_planner_backend.js | |
| parent | 89dda04c48ca19341abc318aed385d4778ba9e62 (diff) | |
[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.
Diffstat (limited to 'addons/web_planner/static/src/js/web_planner_backend.js')
| -rw-r--r-- | addons/web_planner/static/src/js/web_planner_backend.js | 48 |
1 files changed, 0 insertions, 48 deletions
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, -}; - -}); |
