Odoo Help

Welcome!

This community 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.

0

Error "invalid option: --clean-css"

By
Matus Krnac
on 6/22/15, 2:26 PM 1,495 views

I would like to test Odoo 9. I have it installed on CentOS 7. I had installed lessc, but while loading i'm getting this error:


WARNING odoo_9_alpha openerp.addons.base.ir.ir_qweb: /usr/local/share/gems/gems/less-2.6.0/bin/lessc:83:in `<top (required)>': invalid option: --clean-css (OptionParser::InvalidOption)

from /usr/local/bin/lessc:23:in `load'

from /usr/local/bin/lessc:23:in `<main>'

This error occured while compiling the bundle 'web.assets_backend' containing:

- /website/static/src/less/import_bootstrap.less

- /web/static/src/less/enterprise_compatibility.less

- /web/static/src/less/utils.less

- /web/static/src/less/modal.less

- /web_calendar/static/src/less/web_calendar.less

- /web_kanban/static/src/less/kanban_dashboard.less

- /web_kanban/static/src/less/kanban_view.less


Layout of page is broken. Does anybody know what it could mean?

0
Matus Krnac
On 6/22/15, 3:16 PM

I figured it out. Just deleted entries (clean-css, no-js)  from addons/base/ir/ir_qweb.py


#return [lessc, '-', '--clean-css', '--no-js', '--no-color', '--include-path=%s' % lesspath]

return [lessc, '-', '--no-color', '--include-path=%s' % lesspath]


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/22/15, 2:26 PM
Seen: 1495 times
Last updated: 6/22/15, 3:16 PM