diff options
| author | qsm-odoo <qsm@odoo.com> | 2016-11-02 12:36:16 +0100 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2016-11-02 13:26:00 +0100 |
| commit | dd560377e28ac9a8e39f56241bfff490ca7bce3f (patch) | |
| tree | 745e7459b006cdc66fa971b3ba5f4e6bf5116d3e /addons/web/static/src/less | |
| parent | c8d0fd4a50893535c7be0fb416e1f05a917e98d0 (diff) | |
[IMP] web: improve traceback reporting
* Do not assault the user with a full traceback on bug, but indicates
an error occured and allow him to toggle the traceback
* Automatically scroll the traceback to the end (better for python
errors)
* Propose the user to report the traceback by using a new "Copy"
button which correctly copies the full error + traceback
Diffstat (limited to 'addons/web/static/src/less')
| -rw-r--r-- | addons/web/static/src/less/modal.less | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/addons/web/static/src/less/modal.less b/addons/web/static/src/less/modal.less index bca950796fc..2a0fbb1fa36 100644 --- a/addons/web/static/src/less/modal.less +++ b/addons/web/static/src/less/modal.less @@ -33,7 +33,7 @@ text-align: left; } } - + @media (min-width: @screen-sm-min) { .modal-dialog { @@ -52,6 +52,23 @@ .modal-body { overflow: auto; + min-height: 0; + + &.o_dialog_error { + overflow: visible; + .o-flex-display(); + .o-flex-flow(column, nowrap); + + > .alert, > button { + .o-flex(0, 0, auto); + } + + > .o_error_detail { + .o-flex(1, 1, auto); + min-height: 0; + overflow: auto; + } + } } } } |
