diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/base_automation/static/src/xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/base_automation/static/src/xml')
| -rw-r--r-- | addons/base_automation/static/src/xml/base_automation_error_dialog.xml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/addons/base_automation/static/src/xml/base_automation_error_dialog.xml b/addons/base_automation/static/src/xml/base_automation_error_dialog.xml new file mode 100644 index 00000000..e45c5911 --- /dev/null +++ b/addons/base_automation/static/src/xml/base_automation_error_dialog.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<templates> + <t t-name="CrashManager.BaseAutomationError" t-extend="CrashManager.error"> + <t t-jquery=".alert.alert-warning" t-operation="append"> + <t t-if="widget.base_automation.id"> + <p> + The error occurred during the execution of the automated action + "<t t-esc="widget.base_automation.name"/>" + (ID: <t t-esc="widget.base_automation.id"/>). + <br/> + </p> + <p t-if="!widget.is_admin"> + You can ask an administrator to disable or correct this automated action. + </p> + <p t-if="widget.is_admin"> + You can disable this automated action or edit it to solve the issue.<br/> + Disabling this automated action will enable you to continue your workflow + but any data created after this could potentially be corrupted, + as you are effectively disabling a customization that may set + important and/or required fields. + </p> + </t> + </t> + <t t-jquery=".alert.alert-warning button" t-operation="after"> + <t t-if="widget.base_automation.id && widget.is_admin"> + <button class="btn btn-secondary mt4 o_disable_action_button"> + <i class="fa fa-ban mr8"/>Disable Action + </button> + <button class="btn btn-secondary mt4 o_edit_action_button"> + <i class="fa fa-edit mr8"/>Edit action + </button> + </t> + </t> + </t> +</templates> |
