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/website/static/src | |
| 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/website/static/src')
| -rw-r--r-- | addons/website/static/src/js/menu/planner.js | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/addons/website/static/src/js/menu/planner.js b/addons/website/static/src/js/menu/planner.js deleted file mode 100644 index eff0bd3f961..00000000000 --- a/addons/website/static/src/js/menu/planner.js +++ /dev/null @@ -1,52 +0,0 @@ -odoo.define('website.planner', function (require) { -'use strict'; - -var session = require('web.session'); -var planner = require('web.planner.common'); -var Widget = require('web.Widget'); -var websiteNavbarData = require('website.navbar'); - -if (!session.is_system) { - return; -} - -var WebsitePlannerLauncher = planner.PlannerLauncher.extend({ - /** - * @override - */ - _fetch_planner_data: function () { - var self = this; - return this._rpc({ - model: 'web.planner', - method: 'search_read', - args: [[['planner_application', '=', 'planner_website']]], - }).then(function (planner) { - if (!planner.length) return; - - planner[0].data = $.parseJSON(planner[0].data) || {}; - self._setup_for_planner(planner[0]); - }); - }, -}); - -var PlannerMenu = Widget.extend({ - xmlDependencies: ['/web_planner/static/src/xml/web_planner.xml'], - - /** - * Instantiates the planner launcher and adds it to the DOM. - * - * @override - */ - start: function () { - var websitePlannerLauncher = new WebsitePlannerLauncher(this); - return $.when( - this._super.apply(this, arguments), - websitePlannerLauncher.prependTo(this.$el) - ); - }, -}); - -websiteNavbarData.websiteNavbarRegistry.add(PlannerMenu, '.o_menu_systray'); - -return WebsitePlannerLauncher; -}); |
