Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I did install all dependies as proposed in https://www.odoo.com/documentation/8.0/setup/install.html#source-install on my Ubuntu 14.4 server. After installing clean theme on a newly created database I see on the website that there must be a CSS error (no grafic, no structure).
The Logfile says:
IOError: [Errno 2] command not found: 'lessc'
When I check which less and which lessc the results are the same as odoo or as root user:
/usr/bin/less and /usr/local/bin/lessc
I think the problem is that odoo can't find lessc, but I don't have any idea how to fix this.
In my odoo home folder the .npm folder has been created.
The solution in my question was relativly simple, but without the help of a friend I would have having problems to find the clue.
Because normally odoo is started from the root user, so the environment variable from the odoo user are not active. The environment variables are coming from the process, eg are normally stated in the /etc/init.d/odoo-server startup file.
This variable should solve the problem: Please ad or correct in the startup script.
Another solution is the create a link to lessc folder
sudo ln -s /usr/local/bin/lessc /usr/bin/lessc
This error shows because of two reasons
You don't install required packages and plug-ins on your ubuntu system or
Install packages and plug-ins are outdated
To ride off from this issue 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
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
|Asked: 3/7/15, 5:44 AM|
|Seen: 2607 times|
|Last updated: 1/27/16, 7:01 AM|