Theme Support Engine

by
Odoo 4
v 8.0 Certified 4918
Download for 8.0 series
Technical name website_less
LicenseAGPL-3
Repositorygit@github.com:odoo/design-themes.git#8.0

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
      
  • on OS X, install nodejs via your preferred package manager (homebrew, macports) then install less and 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
    

Please log in to comment on this module

Odoo
Not sure
by on

What is the license of this module?

Odoo
Small issue
by on

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.

Odoo
Great! one problem though
by on

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.

Odoo
No ordering of content columns
by on

The javascript function activate_insertion_zones in file website.snippets.editor.js not working properly.

Odoo
Nice
by on

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

Odoo
Cautious to install
by on

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.

Odoo
my website builder crashed after installed this module
by on