Support layer for themes in 8.0.
This module requires lessc and its clean-css plugin to be installed on your system. Please refer to the Less CSS via nodejs section of https://www.odoo.com/documentation/8.0/setup/install.html#setup-install-source for installation instructions.
You need to install the Less CSS compiler to run this module
- on Linux, use your distribution's package manager to install nodejs and npm.
In debian wheezy and Ubuntu 13.10 and before you need to install nodejs manually:
$ wget -qO- https://deb.nodesource.com/setup | bash - $ apt-get install -y nodejs
In later debian (>jessie) and ubuntu (>14.04) you may need to add a symlink as npm packages call node but debian calls the binary nodejs
$ apt-get install -y npm $ sudo ln -s /usr/bin/nodejs /usr/bin/node
Once npm is installed, use it to install less and less-plugin-clean-css:
$ sudo npm install -g less less-plugin-clean-css
$ sudo npm install -g less less-plugin-clean-css
on Windows, install nodejs, reboot (to update the PATH) and install less and less-plugin-clean-css:
C:\> npm install -g less less-plugin-clean-css
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module
What is the license of this module?
Since the git is not public for this module, I would like to report an issue. This module blocks any snippet to contain tabs, including already existing website_tabs module, due to it hides tabs when "Insert Blocks" is clicked. Its because of very generic jQuery selectors. Just to point out the issue I will point to exact lines in file website_less/static/src/js/website.snippets.editor.js(lines 126 and 127). Those lines should be modified as below or similar. Current code: var categories = this.$snippet.find(".tab-pane.active") .add(this.$snippet.find(".tab-pane:not(.active)")) Modified code: var categories = this.$snippet.find(".tab-pane.active:not(.oe_snippet_body .tab-pane)") .add(this.$snippet.find(".tab-pane:not(.active):not(.oe_snippet_body .tab-pane)")) Sorry for writing it as a comment, but I did not found git for it to report an issue.
Great! one problem though
I used to be able to append ?debug to the website URL to keep the css files separate. Now when I do this - the individual CSS files seem to be transferring as an incorrect MIME type thus corrupting the debug exercise. Looked for the git repo, to log an issue - but it doesn't seem to exist.
No ordering of content columns
To everyone reporting problem of no CSS rendering after the installation, the issue is caused by bad installation of nodejs and/or cleanCSS. Follow this steps (i had the same problem): 1) Go into your /opt/odoo/addons folder and delete the website_less folder. This will restore your site back, you can unistall the module in your configuration menù after that. 2) Shut down your server ( $sudo /etc/init.d/odoo-server stop ) 3) write these command: $ wget -qO- https://deb.nodesource.com/setup | bash - $ sudo apt-get install nodejs $ sudo apt-get install npm $ sudo npm install less $ sudo npm install less-plugin-clean-css I wrote these in separate lines so you can see if there's a problem in one of them. 4) Restart your Odoo server (or simply restart yout PC) 5) Copy the website_less folder into your /opt/odoo/addons folder, go into your administration control panel, update local modules list (make sure you have administration tools enabled, if not, you can enable them into the users tab into your administration control panel) and install it. Now go into your website and see if it's working properly. Hope this helps
Cautious to install
My website has no rendering after installing this. If uninstalled, everything will be back. So probably the app needs some dependencies which are not clearly stated.