Odoo Help

9
22 Answers
32
Luigi Gregori
10/9/14, 3:30 AM

 

Try login as root ( or use sudo) and run 

apt-get install node-less

It worked well for me.

LG

8 Comments
Fnordbedarf
10/29/14, 10:51 AM

Did you mean "sudo apt-get install node-less" ?

Luigi Gregori
10/30/14, 1:29 PM

Yes, sorry for type mismatch :-(

August Doo
6/27/15, 10:13 PM

This works for me too

Vadims Briksins
6/30/15, 11:20 AM

didnt helped, but after I installed blog addon as it was suggested bellow and it worked out.

Dasadiya Chaitanya
10/1/15, 7:26 AM

@ALL I had done the above all the things but it can not solve my Error ..

GAD Group Technology, Inc., Gregory Dover
10/26/15, 12:32 AM

This works for me too.

Tomás Pascual
2/5/16, 7:26 AM

This works for me too

Hanish Mangalasseri
1/30/19, 3:45 AM

this works for me also

21
Avatar

Axel Mendoza

--Axel Mendoza--
13368
| 7 8 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full-time employee trying to understand what to do and how

Reach me at aekroft@gmail.com

Axel Mendoza
10/3/15, 1:26 AM

The fix:

sudo apt-get install nodejs nodejs-legacy node-less
sudo apt-get install npm
sudo npm install -g less
sudo npm install -g less-plugin-clean-css
sudo ln -s /usr/local/bin/lessc /usr/bin/lessc
sudo ln -s /usr/bin/nodejs /usr/bin/node

After the fix you have 3 options (because a simply f5 to refresh or a server restart doesn't recompile your .less files):

1- Delete and/or Create a new Database

2- Install a module that add a new .less file to be compiled, like blog or website like was suggested here

3- Manually compile your .less files

3 Comments
Bruno PLANCHER
2/19/16, 6:37 AM

This solved the issue for me. The fix depends of the way we want to install it: - using 'node-less' with apt-get (this automatically set the executable available) - 'less' with npm (it creates an executable under its own directory, we have to make a symbolic link to the standard bin path to be usable) By the way, you don't need to install less globally, it only changes where the lessc executable is located

Marcio Valenzuela P
12/2/16, 7:12 AM

what if we are on a mac and dont have apt get?

Axel Mendoza
12/2/16, 2:02 PM

use brew instead of apt-get

6
Angelo
8/19/14, 2:35 AM

Hi, install a Blogs module for fix the bug.

2 Comments
Vadims Briksins
6/30/15, 11:19 AM

Thank you, it did helped me. (Was running odoo 9 Alpha v1 from source in PyCharm)

aneesh ATEES Infomedia Pvt Ltd
9/18/15, 3:08 AM

Thank you...

3

To all of you who are encountering this problem, it is due to a problem with an old version of nodejs (shows up especially in Ubuntu 12.04). To install a stable version we use Chris Lea's repo as follows:

  • sudo apt-get install python-software-properties

  • sudo apt-add-repository ppa:chris-lea/node.js

  • sudo apt-get update

Then you install nodejs:

sudo apt-get install nodejs

You can then check version of nodejs using:

node -v

It should be at least greater than > 0.10

npm -v

Should return a version at least > 1.4

Then finally execute the following command, whick will update npm to a newer version as well as install the less plugin:

  • sudo npm install -g npm

  • sudo npm install -g less less-plugin-clean-css

Enjoy, it worked for me after searching for long hours, enjoy, it worked for me after searching for long hours,

Mustafa

4 Comments
sengottuvel
1/1/16, 6:48 AM

I am also using 12.04 and I followed all the above steps. But still the Could not execute command 'lessc' error showing. I restarted server and postgres service. Deleted old db and created new one. Kinldy help to solve this.

sengottuvel
1/1/16, 6:50 AM

my node.js version is v0.10.37 npm version is 3.5.2

Mustafa Babiker El-Siddig Mustafa Hamad
1/1/16, 7:22 AM
Hello,

Yes this is a common issue with 12.04, please follow the following steps:

Please make sure you have the prerequisites in place for Odoo 8 on 12.04. You can refer to the following document http://www.serpentcs.com/serpentcs-openerp-v7-v8odoo-installation-ubuntu.

Then please follow following steps:

Then:


Then you install nodejs: 

  • sudo apt­get install ­y nodejs 

You can then check version of nodejs using: 
  • node ­v 
  • It should be at least greater than > 0.12
  • Also, npm ­v , should return a version at least > 2.0
 
Then finally execute the following command, whick will update npm to a
newer version as well as install the less plugin: 

  • sudo npm install ­g npm
  • sudo npm install ­g less less­plugin­clean­css 

In order for images to display correctly: 

  • sudo pip install ­­upgrade werkzeug

All the best,

Mustafa B. Hamad




On 1 January 2016 at 14:50, sengottuvel <sengottuvl-gmail-com@mail.odoo.com> wrote:

my node.js version is v0.10.37 npm version is 3.5.2

--
sengottuvel


Mustafa Babiker El-Siddig Mustafa Hamad
1/1/16, 7:27 AM
Sorry some typos:

Then please follow following steps:

Then:


Then you install nodejs: 

  • sudo apt­-get install ­-y nodejs 

You can then check version of nodejs using: 
  • node -­v 
  • It should be at least greater than > 0.12
  • Also, npm -­v , should return a version at least > 2.0
 
Then finally execute the following command, whick will update npm to a
newer version as well as install the less plugin: 

  • sudo npm install ­-g npm
  • sudo npm install -­g less less-­plugin­-clean­css 

In order for images to display correctly: 

  • sudo pip install --­­upgrade werkzeug

On 1 January 2016 at 15:22, Mustafa Hamad <mustafajava@gmail.com> wrote:
Hello,

Yes this is a common issue with 12.04, please follow the following steps:

Please make sure you have the prerequisites in place for Odoo 8 on 12.04. You can refer to the following document http://www.serpentcs.com/serpentcs-openerp-v7-v8odoo-installation-ubuntu.

Then please follow following steps:

Then:


Then you install nodejs: 

  • sudo apt­get install ­y nodejs 

You can then check version of nodejs using: 
  • node ­v 
  • It should be at least greater than > 0.12
  • Also, npm ­v , should return a version at least > 2.0
 
Then finally execute the following command, whick will update npm to a
newer version as well as install the less plugin: 

  • sudo npm install ­g npm
  • sudo npm install ­g less less­plugin­clean­css 

In order for images to display correctly: 

  • sudo pip install ­­upgrade werkzeug

All the best,

Mustafa B. Hamad




On 1 January 2016 at 14:50, sengottuvel <sengottuvl-gmail-com@mail.odoo.com> wrote:

my node.js version is v0.10.37 npm version is 3.5.2

--
sengottuvel



0
Gajanan Kathar
9/26/15, 8:40 AM

This error shows because of two reasons

  1. You don't install required packages and plug-ins on your ubuntu system or

  2. Install packages and plug-ins are outdated

To overcome this problem try this commands on your ubuntu terminal

  • sudo apt-get install curl

  • curl -sL https://deb.nodesource.com/setup_0.10 | sudo bash -

  • sudo apt-get install -y nodejs

  • sudo npm install -g npm (to update npm)

  • sudo npm install -g less less-plugin-clean-css

1 Comment
Dasadiya Chaitanya
10/1/15, 7:25 AM

@Gajanan Kathar I had done the above all the things but it can not solve my Error ..

0
wizardz
10/2/15, 4:09 AM

It's not working here, What is with wkhtmltopdf?

1 Comment
wizardz
10/2/15, 4:10 AM

Ok now it's worked, I have installed node-less and then the Module: website builder

0
Hussainar
12/10/15, 6:51 AM

Try this

sudo apt-get install lxc

0
Avatar

Jérémy Kersten (jke)

--Jérémy Kersten (jke)--

5182
| 3 3 5
Jodoigne, Belgium
--Jérémy Kersten (jke)--

Jérémy is a member of the core R&D team since september 2013. He developed several projects for OpenERP version 8 including the eCommerce, the Google Calendar synchronization and the new product variants/configurator. Now, he manages Odoo website and themes for saas.

Jérémy Kersten (jke)
9/26/15, 9:00 AM

First Time that You see it... It's because You don't have lessc installed!

Once installed, You need to invalidate the bundle (installing any module which add less file) to generate again the bundle! 

0
ahmed hegazy
10/17/15, 9:36 AM

before install blog run this :

 apt-get -y update && apt-get -y upgrade && apt-get -y install python python-egenix-mxdatetime python-dateutil python-pybabel python-openid python-feedparser python-lxml python-libxml2 python-libxslt1 python-psycopg2 python-libxml2 python-libxslt1 python-imaging python-gdata python-ldap python-reportlab python-pyparsing python-simplejson python-pydot python-webdav graphviz python-werkzeug python-matplotlib python-vatnumber python-numpy python-pychart python-vobject python-zsi python-xlwt python-hippocanvas python-profiler python-dev python-setuptools postgresql postgresql-client-common python-yaml python-mako gcc mc python-babel python-feedparser python-reportlab-accel python-zsi python-openssl python-jinja2 python-unittest2 python-mock  python-docutils lptools make python-psutil python-paramiko poppler-utils python-pdftools antiword python-jinja2 python-requests git-core sudo python-decorator python-pypdf python-passlib xsltproc xmlstarlet python-soappy python-qrencode curl npm && curl -sL https://deb.nodesource.com/setup | bash - && apt-get -y install nodejs && npm install -g npm && npm install -g less less-plugin-clean-css

http://misnotasdelinux.blogspot.mx/2015/10/instalar-odoo-9-en-debian-8.html

1 Comment
Juan Sebastián Ocampo Ospina
8/8/17, 4:00 PM

it worked for me. Thanks

0
Wassim Chaabouni
12/10/15, 5:56 AM

1- install node-less: apt-get install node-less

2- Restart postgresql service: sudo service postgresql restart

3- Restart the sever.

-1
Avatar

Mariusz Mizgier

--Mariusz Mizgier--
800
| 4 2 7
SOPOT, Poland
--Mariusz Mizgier--

OpenERP developer

Mariusz Mizgier
8/18/14, 3:32 AM
1 Comment
Fnordbedarf
10/29/14, 10:56 AM

I followed the instructions on the link. Not knowing where to put the path to lessc correctly, I installed less, globally as advised in the second post. sudo apt-get install npm sudo npm install lessc This breaks my Odoo's behavior: The Website does not load except for the black header bar at the top, which buttons do not perform a drop-down box.

Ask a Question
Writer
Keep Informed
4 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now