From 515e7bc50f07c983eb932825d763753978346e66 Mon Sep 17 00:00:00 2001 From: Andrea Ulliana Date: Tue, 22 Jan 2019 14:48:44 +0000 Subject: [IMP] website, *: improve CSS edition usability + add JS edition * web_editor Currently, when an user wants to edit the css of its website, he has access to lots of files and, in debug mode, to even more files. While the feature is nice for people who know what they are doing, a lambda person can easily break its website by changing the wrong files. Also, nothing warns the user that the files that are edited will never receive updates anymore (unless if they are reset). The goal is to prevent those behavior while still allowing the add custom css. Another goal is to be able to *add* custom javascript. Custom files created for the user: SCSS: user_custom_rules.scss, user_custom_bootstrap_overridden.scss JS: user_custom_javascript.js See https://github.com/odoo/odoo/pull/29999 task-1919350 --- addons/website/static/src/js/user_custom_javascript.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 addons/website/static/src/js/user_custom_javascript.js (limited to 'addons/website/static/src/js/user_custom_javascript.js') diff --git a/addons/website/static/src/js/user_custom_javascript.js b/addons/website/static/src/js/user_custom_javascript.js new file mode 100644 index 00000000000..7849f0a9d2a --- /dev/null +++ b/addons/website/static/src/js/user_custom_javascript.js @@ -0,0 +1 @@ +// Here, you can add your custom JavaScript code. -- cgit v1.2.3