Theme Support Engine

by
Odoo 4
v 8.0 Certified 5208
Download for 8.0 series
You bought this module and need support ? Click here !
Technical name website_less
LicenseSee License tab
Required Apps Website Builder (website)

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
    
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

Please choose a rating from 1 to 5 for 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