diff options
| author | Harpritsinh Sisodiya <hsi@odoo.com> | 2020-01-31 11:07:56 +0000 |
|---|---|---|
| committer | Damien Bouvy <dbo@odoo.com> | 2020-02-21 08:34:24 +0000 |
| commit | 7639f7fbcb7578ca77509c656737747904b1b927 (patch) | |
| tree | 30d30e597a225dd3aedf89bdd3115611e0fa243a /addons/web_editor/static/src/xml | |
| parent | 0c4d808fd73a4d11aafe6aaab8529283da43fef1 (diff) | |
[IMP] web_editor: check resource is custom or not to display warning on editor
adds _isCustomResource method which will check whether resource is custom or
not, this method checks for JS and SCSS resource, if resource is custom then
do not show "No Update" warning inside ace editor.
task-2167570
closes odoo/odoo#44536
Related: odoo/enterprise#8368
Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
Co-authored-by: Mohammed Shekha <msh@odoo.com>
Diffstat (limited to 'addons/web_editor/static/src/xml')
| -rw-r--r-- | addons/web_editor/static/src/xml/ace.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/xml/ace.xml b/addons/web_editor/static/src/xml/ace.xml index f299aa25b92..5d27aa0c7fc 100644 --- a/addons/web_editor/static/src/xml/ace.xml +++ b/addons/web_editor/static/src/xml/ace.xml @@ -50,7 +50,7 @@ </div> <span class="o_ace_editor_resource_info"/> <div class="alert alert-warning alert-dismissible mt-2 mb-0" role="alert"> - If you edit and save this file, you will never receive updates from Odoo anymore unless you reset your customizations. + Editing a built-in file through this editor is not advised, as it will prevent it from being updated during future App upgrades. <button type="button" class="close" aria-label="Close"> <span>&times;</span> </button> |
