summaryrefslogtreecommitdiff
path: root/addons/web
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-11-30 18:43:08 +0100
committerChristophe Simonis <chs@odoo.com>2017-11-30 18:43:08 +0100
commit42264d8dcb7f8d0795c84718d1fc9a5fd1aefd32 (patch)
tree216ded7eac5ba06623892aaaece74c586afd4b5e /addons/web
parente4a281b5a5f7ea44e4f25259b1a84cb0dc437ebc (diff)
parent5d7ad2b16cc3ef579a6657822b7c57b07fef4f52 (diff)
[MERGE] forward port branch saas-16 up to 5d7ad2b16cc
Diffstat (limited to 'addons/web')
-rw-r--r--addons/web/static/src/js/boot.js31
-rw-r--r--addons/web/static/src/less/layout_clean.less3
2 files changed, 23 insertions, 11 deletions
diff --git a/addons/web/static/src/js/boot.js b/addons/web/static/src/js/boot.js
index 9d299b1da84..c229029b944 100644
--- a/addons/web/static/src/js/boot.js
+++ b/addons/web/static/src/js/boot.js
@@ -10,7 +10,7 @@
* only when the deferred is resolved, and its value is equal to the resolved value.
* The module can be rejected (unloaded). This will be logged in the console as info.
*
- * logs:
+ * logs:
* Missing dependencies:
* These modules do not appear in the page. It is possible that the
* JavaScript file is not in the page or that the module name is wrong
@@ -185,16 +185,27 @@
failed = odoo.__DEBUG__.get_failed_jobs();
var unloaded = _.filter(debug_jobs, function (job) { return job.missing; });
- var log = [(_.isEmpty(failed) ? (_.isEmpty(unloaded) ? 'info' : 'warning' ) : 'error') + ':', 'Some modules could not be started'];
- if (missing.length) log.push('\nMissing dependencies: ', missing);
- if (!_.isEmpty(failed)) log.push('\nFailed modules: ', _.pluck(failed, 'name'));
- if (!_.isEmpty(rejected)) log.push('\nRejected modules: ', rejected);
- if (!_.isEmpty(rejected_linked))log.push('\nRejected linked modules:', rejected_linked);
- if (!_.isEmpty(unloaded)) log.push('\nNon loaded modules: ', _.pluck(unloaded, 'name'));
- if (odoo.debug && !_.isEmpty(debug_jobs)) log.push('\nDebug: ', debug_jobs);
-
if (odoo.debug || !_.isEmpty(failed) || !_.isEmpty(unloaded)) {
- console[_.isEmpty(failed) || _.isEmpty(unloaded) ? 'info' : 'error'].apply(console, log);
+ var log = console[_.isEmpty(failed) || _.isEmpty(unloaded) ? 'info' : 'error'].bind(console);
+ log((_.isEmpty(failed) ? (_.isEmpty(unloaded) ? 'info' : 'warning') : 'error') + ': Some modules could not be started');
+ if (missing.length) {
+ log('Missing dependencies: ', missing);
+ }
+ if (!_.isEmpty(failed)) {
+ log('Failed modules: ', _.pluck(failed, 'name'));
+ }
+ if (!_.isEmpty(rejected)) {
+ log('Rejected modules: ', rejected);
+ }
+ if (!_.isEmpty(rejected_linked)) {
+ log('Rejected linked modules: ', rejected_linked);
+ }
+ if (!_.isEmpty(unloaded)) {
+ log('Non loaded modules: ', _.pluck(unloaded, 'name'));
+ }
+ if (odoo.debug && !_.isEmpty(debug_jobs)) {
+ log('Debug: ', debug_jobs);
+ }
}
}
odoo.__DEBUG__.js_modules = {
diff --git a/addons/web/static/src/less/layout_clean.less b/addons/web/static/src/less/layout_clean.less
index 85e9c2d8491..869e1f4098f 100644
--- a/addons/web/static/src/less/layout_clean.less
+++ b/addons/web/static/src/less/layout_clean.less
@@ -70,7 +70,8 @@
/*Total table*/
.row > .col-xs-4 {
width: 43%;
- margin-top: -20px;
+ position: relative;
+ top: -20px;
> table {
tr:last-child td {
border-top: 1px solid @gray-lighter !important;