This question has been flagged
7 Replies
4491 Views

                content: "NameError: .o-flex is undefined in - on line 271, column 5:\A 270 min-height: 0;\A 271 .o-flex(0, 1, 100%);\A 272 border: none;\A \A

This error occured while compiling the bundle 'web.assets_common' containing:
\A
 - /web/static/src/less/mimetypes.less\A
 - /web/static/src/less/animation.less\A
 - /website_sign/static/src/less/website_sign_common.less\A
 - /web_planner/static/src/less/web_planner_common.less\A
 - /web_editor/static/src/less/web_editor.less";

 


This is my error , how can I fix this? it is only when I install web modules

Avatar
Discard
Best Answer

Hello Wizardz,


For this error you should install some package. The follow step of installation is use for you.


1) sudo apt-get update

2) sudo apt-get install nodejs
3) sudo npm install -g less-plugin-clean-css
4) sudo npm install -g less



Hope this works for You.

Thanks,

Avatar
Discard
Best Answer

Hello Wizardz, 

Please install node-less using below command

sudo apt-get update && apt-get install node-less

Hope it will helps.


Avatar
Discard
Author

same error, every time I want to install website_sign

which linux distro. are you using?

Author Best Answer

Hello Jignesh Mehta, 

I tested it with this:

1) sudo apt-get update

2) sudo apt-get install nodejs

3) sudo npm install -g less-plugin-clean-css

4) sudo npm install -g less

But the same error is showing up. I have created a new database to test this all the web_ modules . But in Odoo9 nightly build the web modules show me every time the "LESS" errors.


Avatar
Discard
Best Answer

1. Check the official documentation about installing dependencies of Odoo 9.0 and don't forget the symlink (Ubuntu 14.04 only)

https://www.odoo.com/documentation/9.0/setup/install.html     

2. If it does not help, check this:https://www.odoo.com/forum/help-1/question/ubuntu-server-14-04-howto-install-nodejs-npm-and-less-82575        

3. website_sign is an enterprise module. If you are an enterprise customer, you should get help from Odoo.

Avatar
Discard
Best Answer

For you less try;

sudo apt-get install nodejs

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


However it might be a good idea to follow this example to the letter and you should be fine. I recommend a complete remove of what you have installed then reinstall. Link for instructions see bottom

Remove all

sudo apt-get --purge remove odoo

#not ideal but.. works.

sudo find / -iname 'odoo' -print -exec rm -r {} \;

# removal of PostgreSQL

sudo apt-get --purge remove postgresql\*

sudo rm -r /etc/postgresql

sudo rm -r /etc/postgresql-common*

sudo rm -r /var/lib/postgresql

sudo rm -rf /etc/apt/sources.list.d/postgresql.list

sudo userdel -r postgres

sudo groupdel postgres

sudo find / -iname 'postgresql' -print -exec rm -r {} \;

# if you see dependency problem it is most likely you have a problem that while install PostgreSQL you did this multiple times

# and therefor left some of those packages, you will need to remove them 1 by 1 before installing again!

# I  suggest the following for installing PostgreSQL

sudo apt-get install python-software-properties -y

wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - 

sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" >> /etc/apt/sources.list.d/postgresql.list'

sudo apt-get update && sudo apt-get install postgresql-9.3 pgadmin3 -y


Link for instructions installing v9 on trusty:

https://www.getopenerp.com/install-odoo-9-on-ubuntu/


I know that on ubuntu wily 15.10 ( you can use the deb file, and it will install without a problem) but some features might not work in version Odoo v9. For me I made a small bash shell script to install Odoo v8 on 15.10, do not think it will work for you on 14.x

Avatar
Discard