summaryrefslogtreecommitdiff
path: root/addons/web_planner/static/src/js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2016-07-12 15:04:09 +0200
committerGéry Debongnie <ged@odoo.com>2016-09-28 16:55:51 +0200
commit66cb0d7aa3d286f3d57a7a675fd7102406dc82a5 (patch)
treeb4f6ca9deec7264a3ee039091d1e68445ddf8bdd /addons/web_planner/static/src/js
parent442355518d2abbe227d456139b10269816ec3803 (diff)
[IMP] mail,web,web_planner: order of systray items
Sort systray items by sequence to allow, e.g. to force the planner item to be the left-most item of the systray as it is not displayed in all apps, and thus produces a flickering of the other items. Also invert the push order of the two mail items to keep the previous order as they are now prepended instead of appended.
Diffstat (limited to 'addons/web_planner/static/src/js')
-rw-r--r--addons/web_planner/static/src/js/web_planner_backend.js4
1 files changed, 1 insertions, 3 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
index 0044905d6bb..8bf55f2190e 100644
--- a/addons/web_planner/static/src/js/web_planner_backend.js
+++ b/addons/web_planner/static/src/js/web_planner_backend.js
@@ -2,18 +2,16 @@ odoo.define('web.planner', function (require) {
"use strict";
var core = require('web.core');
-var Dialog = require('web.Dialog');
var Model = require('web.Model');
var SystrayMenu = require('web.SystrayMenu');
var Widget = require('web.Widget');
var planner = require('web.planner.common');
var webclient = require('web.web_client');
-var QWeb = core.qweb;
-var _t = core._t;
var PlannerDialog = planner.PlannerDialog;
var PlannerLauncher = Widget.extend({
+ sequence: 100, // force it to be the left-most item in the systray to prevent flickering as it is not displayed in all apps
template: "PlannerLauncher",
init: function(parent) {
this._super(parent);