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/fonts/Simple-Line-Icons.dev.svg | 1369 -------------------- .../static/src/fonts/Simple-Line-Icons.eot | Bin 35514 -> 0 bytes .../static/src/fonts/Simple-Line-Icons.svg | 1369 -------------------- .../static/src/fonts/Simple-Line-Icons.ttf | Bin 35304 -> 0 bytes .../static/src/fonts/Simple-Line-Icons.woff | Bin 59324 -> 0 bytes .../static/src/img/fabien_signature.png | Bin 1273 -> 0 bytes addons/web_planner/static/src/img/odoo_logo.png | Bin 12829 -> 0 bytes addons/web_planner/static/src/img/shadow.png | Bin 212 -> 0 bytes .../static/src/js/web_planner_backend.js | 48 - .../static/src/js/web_planner_common.js | 432 ------ .../static/src/less/web_planner_common.less | 371 ------ addons/web_planner/static/src/xml/web_planner.xml | 33 - 12 files changed, 3622 deletions(-) delete mode 100644 addons/web_planner/static/src/fonts/Simple-Line-Icons.dev.svg delete mode 100644 addons/web_planner/static/src/fonts/Simple-Line-Icons.eot delete mode 100644 addons/web_planner/static/src/fonts/Simple-Line-Icons.svg delete mode 100644 addons/web_planner/static/src/fonts/Simple-Line-Icons.ttf delete mode 100644 addons/web_planner/static/src/fonts/Simple-Line-Icons.woff delete mode 100644 addons/web_planner/static/src/img/fabien_signature.png delete mode 100644 addons/web_planner/static/src/img/odoo_logo.png delete mode 100644 addons/web_planner/static/src/img/shadow.png delete mode 100644 addons/web_planner/static/src/js/web_planner_backend.js delete mode 100644 addons/web_planner/static/src/js/web_planner_common.js delete mode 100644 addons/web_planner/static/src/less/web_planner_common.less delete mode 100644 addons/web_planner/static/src/xml/web_planner.xml (limited to 'addons/web_planner/static/src') diff --git a/addons/web_planner/static/src/fonts/Simple-Line-Icons.dev.svg b/addons/web_planner/static/src/fonts/Simple-Line-Icons.dev.svg deleted file mode 100644 index d8a4b3a30d7..00000000000 --- a/addons/web_planner/static/src/fonts/Simple-Line-Icons.dev.svg +++ /dev/null @@ -1,1369 +0,0 @@ - - - - -This is a custom SVG font generated by IcoMoon. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/addons/web_planner/static/src/fonts/Simple-Line-Icons.eot b/addons/web_planner/static/src/fonts/Simple-Line-Icons.eot deleted file mode 100644 index d258f623388..00000000000 Binary files a/addons/web_planner/static/src/fonts/Simple-Line-Icons.eot and /dev/null differ diff --git a/addons/web_planner/static/src/fonts/Simple-Line-Icons.svg b/addons/web_planner/static/src/fonts/Simple-Line-Icons.svg deleted file mode 100644 index 6c9f7c51b62..00000000000 --- a/addons/web_planner/static/src/fonts/Simple-Line-Icons.svg +++ /dev/null @@ -1,1369 +0,0 @@ - - - - -This is a custom SVG font generated by IcoMoon. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/addons/web_planner/static/src/fonts/Simple-Line-Icons.ttf b/addons/web_planner/static/src/fonts/Simple-Line-Icons.ttf deleted file mode 100644 index 2194f1f87ff..00000000000 Binary files a/addons/web_planner/static/src/fonts/Simple-Line-Icons.ttf and /dev/null differ diff --git a/addons/web_planner/static/src/fonts/Simple-Line-Icons.woff b/addons/web_planner/static/src/fonts/Simple-Line-Icons.woff deleted file mode 100644 index 50df1e47dcf..00000000000 Binary files a/addons/web_planner/static/src/fonts/Simple-Line-Icons.woff and /dev/null differ diff --git a/addons/web_planner/static/src/img/fabien_signature.png b/addons/web_planner/static/src/img/fabien_signature.png deleted file mode 100644 index bd753fbc6a6..00000000000 Binary files a/addons/web_planner/static/src/img/fabien_signature.png and /dev/null differ diff --git a/addons/web_planner/static/src/img/odoo_logo.png b/addons/web_planner/static/src/img/odoo_logo.png deleted file mode 100644 index 36b52ddf403..00000000000 Binary files a/addons/web_planner/static/src/img/odoo_logo.png and /dev/null differ diff --git a/addons/web_planner/static/src/img/shadow.png b/addons/web_planner/static/src/img/shadow.png deleted file mode 100644 index 19ce3d34163..00000000000 Binary files a/addons/web_planner/static/src/img/shadow.png and /dev/null differ 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, -}; - -}); diff --git a/addons/web_planner/static/src/js/web_planner_common.js b/addons/web_planner/static/src/js/web_planner_common.js deleted file mode 100644 index 33a7b8b337d..00000000000 --- a/addons/web_planner/static/src/js/web_planner_common.js +++ /dev/null @@ -1,432 +0,0 @@ -odoo.define('web.planner.common', function (require) { -"use strict"; - -var core = require('web.core'); -var Dialog = require('web.Dialog'); -var dom = require('web.dom'); -var rpc = require('web.rpc'); -var session = require('web.session'); -var utils = require('web.utils'); -var Widget = require('web.Widget'); - -var QWeb = core.qweb; - -var _t = core._t; - -var MIN_PROGRESS = 7; - -var Page = core.Class.extend({ - init: function (dom, page_index) { - this.$dom = $(dom); - this.hide_from_menu = this.$dom.attr('hide-from-menu'); - this.hide_mark_as_done = this.$dom.attr('hide-mark-as-done'); - this.done = false; - this.menu_item = null; - this.title = this.$dom.find('[data-menutitle]').data('menutitle'); - this.set_page_id(this.title.replace(/\s/g, '') + page_index); - }, - set_page_id: function (id) { - this.id = id; - this.$dom.attr('id', id); - }, - get_category_name: function (category_selector) { - return this.$dom.parents(category_selector).attr('menu-category-id'); - }, -}); - -var PlannerDialog = Dialog.extend({ - template: "PlannerDialog", - category_selector: "div[menu-category-id]", - events: { - "click li a[href^=\"#\"]:not([data-toggle=\"collapse\"])": function (e) { - e.preventDefault(); - this._display_page($(e.currentTarget).attr("href").replace("#", "")); - }, - "click a[href^=\"#show_enterprise\"]": function (e) { - e.preventDefault(); - this.show_enterprise(); - }, - }, - init: function (parent, options, planner) { - this._super.apply(this, arguments); - - this.planner = planner; - this.cookie_name = this.planner.planner_application + '_last_page'; - this.pages = []; - this.menu_items = []; - this.currently_shown_page = null; - this.currently_active_menu_item = null, - - this.on("change:progress", this, function () { - this.trigger('planner_progress_changed', this.get('progress')); - }); - this.set("progress", this.planner.progress || MIN_PROGRESS); - }, - /** - * Fetch the planner's rendered template - */ - willStart: function() { - var def = rpc.query({ - model: 'web.planner', - method: 'render', - args: [this.planner.view_id[0], this.planner.planner_application], - context: session.user_context, - }) - .then((function (template) { - this.$template = $(template); - }).bind(this)); - - return $.when(this._super.apply(this, arguments), def); - }, - start: function() { - this.$modal.addClass("o_planner_dialog"); - this.$template.find(".o_planner_page").addBack(".o_planner_page").each((function (index, dom_page) { - this.pages.push(new Page(dom_page, index)); - }).bind(this)); - - this.$menu = this.$('> .o_planner_menu'); - this.$menu.html(this._render_menu()); - this.menu_items = this.$menu.find("li"); - _.each(this.pages, (function (page) { - page.menu_item = this._find_menu_item_by_page_id(page.id); - }).bind(this)); - - this.$el.append(this.$template); - - // update the planner_data with the new inputs of the view - var actual_vals = this._get_values(); - this.planner.data = _.defaults(this.planner.data, actual_vals); - // set the default value - this._set_values(this.planner.data); - // show last opened page - this._show_last_open_page(); - - this.on("planner_progress_changed", this, this._update_title); - this._update_title(); - - this.prepare_planner_event(); - - return this._super.apply(this, arguments); - }, - prepare_planner_event: function () {}, // overriden by modules - toggle_current_page_status: function () { - this.currently_shown_page.done = !this.currently_shown_page.done; - this._render_page_status(this.currently_shown_page, true); - this._update_buttons(); - this._update_planner(); - }, - change_to_next_page: function (ev) { - ev.preventDefault(); - this._display_page(this._get_next_page_id()); - }, - _update_title: function () { - this.set_title(core.qweb.render("PlannerDialog.Title", { - title: this.currently_shown_page.title, - percent: this.get("progress") - })); - }, - _update_buttons: function () { - var page = this.currently_shown_page; - var buttons = []; - if (!page.hide_mark_as_done) { - buttons.push({ - text: _t("Mark As Done"), - icon: page.done ? "fa-check-square-o" : "fa-square-o", - classes: "o_mark_as_done btn-" + (page.done ? "default" : "primary"), - click: this.toggle_current_page_status - }); - } - if (this._get_next_page_id()) { - buttons.push({ - text: _t("Next Step"), - icon: "fa-angle-right pull-right mt4", - classes: "o_next_step btn-" + ((page.done || page.hide_mark_as_done) ? "primary" : "default"), - click: this.change_to_next_page - }); - } - this.set_buttons(buttons); - }, - _render_page_status: function (page, withAnim) { - $(page.menu_item).find('span').toggleClass('fa-check', !!page.done); - if (withAnim && page.done) { // page checked animation - page.$dom.addClass('marked'); - _.delay(function () { - page.$dom.removeClass('marked'); - }, 1000); - } - }, - _show_last_open_page: function () { - var last_open_page = utils.get_cookie(this.cookie_name); - if (!last_open_page) { - last_open_page = this.planner.data.last_open_page || false; - } - - if (last_open_page && this._find_page_by_id(last_open_page)) { - this._display_page(last_open_page); - } else { - this._display_page(this.pages[0].id); - } - }, - _render_menu: function() { - var orphan_pages = []; - var menu_categories = []; - var menu_item_page_map = {}; - - // pages with no category - _.each(this.pages, (function (page) { - if (!page.hide_from_menu && !page.get_category_name(this.category_selector)) { - _create_menu_item(page, orphan_pages, menu_item_page_map); - } - }).bind(this)); - - // pages with a category - this.$template.filter(this.category_selector).each((function (index, menu_category) { - var $menu_category = $(menu_category); - var menu_category_item = { - name: $menu_category.attr('menu-category-id'), - classes: $menu_category.attr('menu-classes'), - menu_items: [], - }; - - _.each(this.pages, (function (page) { - if (!page.hide_from_menu && page.get_category_name(this.category_selector) === menu_category_item.name) { - _create_menu_item(page, menu_category_item.menu_items, menu_item_page_map); - } - }).bind(this)); - - menu_categories.push(menu_category_item); - - // remove the branding used to separate the pages - this.$template = this.$template.not($menu_category); - this.$template = this.$template.add($menu_category.contents()); - }).bind(this)); - - return QWeb.render('PlannerMenu', { - 'orphan_pages': orphan_pages, - 'menu_categories': menu_categories, - 'menu_item_page_map': menu_item_page_map - }); - - function _create_menu_item(page, menu_items, menu_item_page_map) { - var $menu_item_element = page.$dom.find('h1[data-menutitle]'); - var menu_title = $menu_item_element.data('menutitle') || $menu_item_element.text(); - - menu_items.push(menu_title); - menu_item_page_map[menu_title] = page.id; - } - }, - _get_next_page_id: function () { - var currentID = this.currently_shown_page.id; - var currentIndex = _.findIndex(this.pages, function (page) { - return page.id === currentID; - }); - var nextPage = this.pages[currentIndex + 1]; - return nextPage ? nextPage.id : null; - }, - _find_page_by_id: function (id) { - return _.find(this.pages, function (page) { - return page.id === id; - }); - }, - _find_menu_item_by_page_id: function (page_id) { - return _.find(this.menu_items, function (menu_item) { - var $menu_item = $(menu_item); - return $($menu_item.find('a')).attr('href') === '#' + page_id; - }); - }, - _display_page: function (page_id) { - if (!page_id) return; - - var self = this; - var page = this._find_page_by_id(page_id); - if (this.currently_active_menu_item) { - $(this.currently_active_menu_item).removeClass('active'); - } - - var menu_item = this._find_menu_item_by_page_id(page_id); - $(menu_item).addClass('active'); - this.currently_active_menu_item = menu_item; - - if (this.currently_shown_page) { - this.currently_shown_page.$dom.removeClass('show'); - } - - page.$dom.addClass('show'); - this.currently_shown_page = page; - - this._update_title(); - this._render_page_status(this.currently_shown_page); - this._update_buttons(); - - this.planner.data.last_open_page = page_id; - utils.set_cookie(this.cookie_name, page_id, 8*60*60); // create cookie for 8h - this.$el.scrollTop("0"); - - this.$('textarea').each(function () { - dom.autoresize($(this), {parent: self}); - }); - }, - // planner data functions - _get_values: function (page) { - // if no page_id, take the complete planner - var base_elem = page ? page.$dom : this.$(".o_planner_page"); - var values = {}; - // get the selector for all the input and mark_button - // only INPUT (select, textearea, input, checkbox and radio), and BUTTON (.mark_button#) are observed - var inputs = base_elem.find("textarea[id^='input_element'], input[id^='input_element'], select[id^='input_element'], button[id^='mark_button']"); - _.each(inputs, function(elem){ - var $elem = $(elem); - var tid = $elem.attr('id'); - if ($elem.prop("tagName") === 'BUTTON'){ - if($elem.hasClass('fa-check-square-o')){ - values[tid] = 'marked'; - }else{ - values[tid] = ''; - } - } - if ($elem.prop("tagName") === 'INPUT' || $elem.prop("tagName") === 'TEXTAREA'){ - var ttype = $elem.attr('type'); - if (ttype === 'checkbox' || ttype === 'radio'){ - values[tid] = ''; - if ($elem.is(':checked')){ - values[tid] = 'checked'; - } - }else{ - values[tid] = $elem.val(); - } - } - }); - - this.pages.forEach(function(page) { - values[page.id] = page.done; - }); - return values; - }, - _set_values: function(values){ - var self = this; - _.each(values, function (val, id) { - var $elem = self.$('[id="'+id+'"]'); - if ($elem.prop("tagName") === 'BUTTON'){ - if(val === 'marked'){ - $elem.addClass('fa-check-square-o btn-default').removeClass('fa-square-o btn-primary'); - self.$("li a[href=#"+$elem.data('pageid')+"] span").addClass('fa-check'); - } - } - if ($elem.prop("tagName") === 'INPUT' || $elem.prop("tagName") === 'TEXTAREA'){ - var ttype = $elem.attr("type"); - if (ttype === 'checkbox' || ttype === 'radio'){ - if (val === 'checked') { - $elem.attr('checked', 'checked'); - } - }else{ - $elem.val(val); - } - } - }); - - _.each(this.pages, function (page) { - page.done = values[page.id]; - self._render_page_status(page); - }); - }, - _update_planner: function () { - // update the planner.data with the inputs - var vals = this._get_values(this.currently_shown_page); - this.planner.data = _.extend(this.planner.data, vals); - - // re compute the progress percentage - var total_pages = 0; - var done_pages = 0; - - _.each(this.pages, function (page) { - if (! page.hide_mark_as_done) { - total_pages++; - } - if (page.done) { - done_pages++; - } - }); - var percent = MIN_PROGRESS + parseInt(done_pages / total_pages * (100 - MIN_PROGRESS), 10); - this.set('progress', percent); - - this.planner.progress = percent; - // save data and progress in database - this._save_planner_data(); - }, - _save_planner_data: function() { - return rpc.query({ - model: 'web.planner', - method: 'write', - args: [this.planner.id, {'data': JSON.stringify(this.planner.data), 'progress': this.planner.progress}], - }); - }, - show_enterprise: function () { - var buttons = [{ - text: _t("Upgrade now"), - classes: 'btn-primary', - close: true, - click: function () { - rpc.query({ - model: "res.users", - method: "search_count", - args: [[["share", "=", false]]], - }) - .then(function (data) { - window.location = "https://www.odoo.com/odoo-enterprise/upgrade?utm_medium=community_upgrade&num_users=" + data; - }); - }, - }, { - text: _t("Cancel"), - close: true, - }]; - var dialog = new Dialog(this, { - size: 'medium', - buttons: buttons, - $content: $('
', { - html: QWeb.render('EnterpriseUpgrade'), - }), - title: _t("Odoo Enterprise"), - }).open(); - - return dialog; - }, -}); - -var PlannerLauncher = Widget.extend({ - template: "PlannerLauncher", - sequence: 100, // force it to be the left-most item in the systray to prevent flickering as it is not displayed in all apps - events: { - "click": "show_dialog" - }, - start: function () { - this.$progress = this.$(".progress"); - this.$progressBar = this.$progress.find(".progress-bar"); - this.$progress.tooltip({html: true, placement: 'bottom', delay: {'show': 500}}); - this._loadPlannerDef = this._fetch_planner_data(); - return this._super.apply(this, arguments); - }, - _fetch_planner_data: function () {}, - show_dialog: function () { - return this._loadPlannerDef.then((function () { - this.dialog = new PlannerDialog(this, undefined, this.planner); - this.dialog.on("planner_progress_changed", this, this._update_parent_progress_bar); - this.dialog.open(); - }).bind(this)); - }, - _setup_for_planner: function (planner) { - this.planner = planner; - this.$progress.attr('data-original-title', this.planner.tooltip_planner); - this._update_parent_progress_bar(this.planner.progress || MIN_PROGRESS); - }, - _update_parent_progress_bar: function (percent) { - this.$progress.toggleClass("o_hidden", percent >= 100); - this.$progressBar.css('width', percent + "%"); - }, -}); - -return { - PlannerDialog: PlannerDialog, - PlannerLauncher: PlannerLauncher -}; - -}); diff --git a/addons/web_planner/static/src/less/web_planner_common.less b/addons/web_planner/static/src/less/web_planner_common.less deleted file mode 100644 index 1de0f6510e0..00000000000 --- a/addons/web_planner/static/src/less/web_planner_common.less +++ /dev/null @@ -1,371 +0,0 @@ - -/**************** FONTS ****************/ -@font-face { - font-family: 'Simple-Line-Icons'; - src:url('/web_planner/static/src/fonts/Simple-Line-Icons.eot'); - src:url('/web_planner/static/src/fonts/Simple-Line-Icons.eot?#iefix') format('embedded-opentype'), - url('/web_planner/static/src/fonts/Simple-Line-Icons.woff') format('woff'), - url('/web_planner/static/src/fonts/Simple-Line-Icons.ttf') format('truetype'), - url('/web_planner/static/src/fonts/Simple-Line-Icons.svg#Simple-Line-Icons') format('svg'); - font-weight: normal; - font-style: normal; -} - -/**************** ICON ****************/ -// use data attributes for inserting icons -// http://www.issme.net/india/assets/plugins/line-icons/ -[data-icon]:before { - font-family: 'Simple-Line-Icons'; - content: attr(data-icon); - speak: none; - font-weight: normal; - font-variant: normal; - text-transform: none; - line-height: 1; - font-style: normal; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -/**************** MENU PROGRESS BAR ****************/ -@planner-height: 13px; -.o_planner_systray { - > .progress { - width: 70px; - height: @planner-height; - margin: floor((@odoo-navbar-height - @planner-height)/2) 10px 0; - cursor: pointer; - - > .progress-bar { - background-color: @brand-success; - } - } -} - -.o_planner_dialog { - - > .modal-dialog { - height: 100%; - padding: 30px 0; - margin: 0 auto; - - > .modal-content { - height: 100%; - .o-flex-display(); - .o-flex-flow(column, nowrap); - - > .modal-header, > .modal-footer { - .o-flex(0, 0, auto); - text-align: left; - padding: 15px; - } - - > .modal-header { - background-color: @odoo-brand-primary; - color: white; - - > .close { - color: inherit; - opacity: 1; - - &::after, &::before { - content: none; - } - } - - > .modal-title { - font-weight: 700; - color: inherit; - - > * { - display: inline-block; - vertical-align: middle; - } - > .o_page_name { - width: 25%; - font-size: 22px; - } - > .progress { - width: 120px; - margin: 0 15px; - - > .progress-bar { - background-color: @brand-success; - box-shadow: none; - } - } - } - } - - > .modal-footer { - padding-left: 25%; - > :first-child { - margin-left: 25px; - } - } - - > .modal-body { - .o-flex(1, 1, auto); - padding: 0; - - > .o_planner_menu { - float: left; - width: 25%; - height: 100%; - overflow: auto; - border-right: 1px solid #e6e6e6; - margin: 0; - padding-top: 10px; - padding-left: 18px; - padding-right: 18px; - list-style-type: none; - line-height: 1.6; - - > li { - // align multi lines li - text-indent: -18px; - padding-left: 18px; - - position: relative; - - > a { - color: #666666; - padding-left: 18px; - font-weight: 600; - font-size: 14px; - - &:hover { - color: @odoo-brand-optional; - } - - > .fa { - .o-position-absolute(@top: 4px, @left: 1px); - } - } - &.active > a { - color: @odoo-brand-optional; - } - } - - > h4 { - padding-left: 27px; - font-size: 12px; - color: #a8a8a8; - border-top: 1px solid #e6e6e6; - margin-left: -15px; - margin-bottom: 15px; - padding-top: 20px; - - > i.fa { - margin-right: 10px; - font-size: 14px; - } - } - } - - > .o_planner_page { - display: none; - height: 100%; - overflow: auto; - margin-left: 25%; - padding: 0 25px; - - > h1 { - font-size: 2.5em; - font-weight: 300; - } - - .o_planner_intro { - font-size: 120%; - } - - .label > a { - color: inherit; - } - - .well, .panel, .alert { - box-shadow: none; - border-radius: 0; - } - - .well { - padding: 30px; - padding: 30px; - .label { - font-size: 12px; - } - } - - .alert { - padding: 30px; - } - - .fa-lightbulb-o { - padding-top: 5px; - &:before { - float: left; - font-size: 20px; - padding-right: 10px; - } - } - - &.marked:after { - .o-display-marked("\f00c", 0, 360px, @brand-success); - } - - //NOTEBOOK - .o_planner_notebook_container { - margin: 20px 0; - .o_planner_notebook { - color: #555; - padding: 0 !important; - font-family: courier, monospace; - border: 1px solid #faebcc; - color: #8a6d3b; - position: relative; - background-color: #fcf8e3; - - textarea, input[type="text"] { - background: #fcf8e3; - border: none; - width: 100%; - max-width: 100%; - } - - input[type="radio"],input[type="checkbox"] { - margin-right: 5px; - } - - > li { - list-style: none; - border-bottom: 1px dashed #C1D6DA; - padding: 10px 10px 5px 55px; - text-transform: capitalize; - margin: 0; - - .indented { - padding-left: 32px; - } - - span { - position: absolute; - left: 9px; - color: rgb(199, 180, 146); - font-size: 20px; - font-weight: bold; - } - } - - > li.row { - span { - left: -50px; // make up for the li's left padding - } - } - - > li:last-child { - border-bottom: 0; - } - - .o_planner_notebook_header { - div.dropdown { - display: inline; - float:right; - } - a { - color: #C4A87A; - position: absolute; - top: 13px; - right: 13px; - &:hover { - text-decoration: none; - color: #9C855D; - } - } - select { - margin-bottom: 10px; - font-family: sans-serif; - font-size: 16px; - border: none; - background: #F5E7CF; - padding: 3px; - width: auto; - } - } - > li:not(.o_planner_notebook_header):hover { - background-color: #F5EFD0; - } - .o_planner_notebook_line_separator { - border-left: 1px solid #ffaa9f; - border-right: 1px solid #ffaa9f; - background: transparent; - position: absolute; - width: 3px; - height: 100%; - top: 0; - left: 42px; - border-bottom: 0; - border-top: 0; - } - } - } - - // WHITE BOX - .o_planner_white_box{ - .panel{ - height: 200px; - width: 100%; - font-size: 1.1em; - padding-top: 40px; - a:hover{ - text-decoration: none; - } - } - } - - // TROPHY - .o_planner_trophy { - font-size: 11em; - color: #875A7B; - margin-top: .5em; - -webkit-animation-name: bounceIn; - animation-name: bounceIn; - -webkit-animation-duration: 1.75s; - animation-duration: 1.75s; - -webkit-animation-fill-mode: both; - animation-fill-mode: both; - } - .info_icon { - position: relative; - padding-left: 5em; - min-height: 6em; - .fa { - position: absolute; - font-size: 5em; - left: 0.2em; - opacity: 0.6; - } - } - - .odoo_purple, a.btn.odoo_purple, .btn.odoo_purple:hover { - background-color: #875A7B; - color: white; - } - - // PARAGRAPHS - .o_planner_paragraphs .icon { - text-align: center; - font-size: 2em; - color: #21b799; - } - - // INSTALL APP - .o_planner_row_apps{ - .col-md-4{ - margin-top: 20px; - } - } - } - } - } - } -} diff --git a/addons/web_planner/static/src/xml/web_planner.xml b/addons/web_planner/static/src/xml/web_planner.xml deleted file mode 100644 index 28fa6dc9525..00000000000 --- a/addons/web_planner/static/src/xml/web_planner.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - -
-
- - -
-
-
-
-
%
- - - -
  • - -
  • - -

    -
  • - -
  • -
    -
    - -- cgit v1.2.3