diff options
Diffstat (limited to 'addons/web/static/src/xml/crash_manager.xml')
| -rw-r--r-- | addons/web/static/src/xml/crash_manager.xml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/addons/web/static/src/xml/crash_manager.xml b/addons/web/static/src/xml/crash_manager.xml new file mode 100644 index 00000000..50b4c126 --- /dev/null +++ b/addons/web/static/src/xml/crash_manager.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<templates id="template" xml:space="preserve"> + +<div t-name="CrashManager.warning" class="o_dialog_warning" role="alert"> + <p t-esc="widget.message" style="white-space: pre-wrap;"/> +</div> + +<div t-name="CrashManager.error" class="o_dialog_error"> + <div class="alert alert-warning clearfix" role="alert"> + <div class="float-right ml8 btn-group-vertical"> + <button class="btn btn-primary o_clipboard_button"> + <i class="fa fa-clipboard mr8"/>Copy the full error to clipboard + </button> + </div> + <p><b>An error occurred</b></p> + <p>Please use the copy button to report the error to your support service.</p> + </div> + + <t t-set="errUID" t-value="_.uniqueId()"/> + <button class="btn btn-link" t-att-data-target="'#o_error_detail' + errUID" data-toggle="collapse">See details</button> + <div t-att-id="'o_error_detail' + errUID" class="collapse alert alert-danger o_error_detail" role="alert"> + <pre t-esc="widget.message"/> + <pre t-esc="widget.traceback"/> + </div> +</div> + +</templates> |
