Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odgovori
5183 Prikazi

Hello,
I just installed Odoo 14 on Windows Server 2012 R2 with Windws 8.1 operating system. All modules are functioning correctly. But the prints are not working properly. When I try to configure Document Layout in general configuration settings, I get the following error:


Style error

×

The style compilation failed, see the error below. Your recent actions may be the cause, please try reverting the changes you made.



Could not execute command 'lessc'This error occured while compiling the bundle 'web.report_assets_common' containing:

- /web/static/lib/bootstrap/scss/_functions.scss

- /web/static/lib/bootstrap/scss/_mixins.scss

- /web/static/src/scss/bs_mixins_overrides.scss

- /web/static/src/scss/utils.scss

- /web/static/src/scss/primary_variables.scss

- /web_enterprise/static/src/scss/primary_variables.scss

- /web_editor/static/src/scss/web_editor.variables.scss

- /mail/static/src/scss/variables.scss

- /portal/static/src/scss/primary_variables.scss

- /website/static/src/scss/primary_variables.scss

- /website/static/src/scss/options/user_values.scss

- /website/static/src/scss/options/colors/user_color_palette.scss

- /website/static/src/scss/options/colors/user_theme_color_palette.scss

- /website/static/src/snippets/s_badge/000_variables.scss

- /website/static/src/snippets/s_product_list/000_variables.scss

- /hr_org_chart/static/src/scss/variables.scss

- /account/static/src/scss/variables.scss

- /website/static/src/scss/secondary_variables.scss

- /web_editor/static/src/scss/secondary_variables.scss

- /web_enterprise/static/src/scss/secondary_variables.scss

- /web/static/src/scss/secondary_variables.scss

- /web/static/src/scss/bootstrap_overridden_report.scss

- /web/static/lib/bootstrap/scss/_variables.scss

- /web/static/src/scss/import_bootstrap.scss

- /web/static/src/scss/bootstrap_review.scss

- /web/static/src/scss/fonts.scss

- /web/static/src/scss/report.scss

- /web/static/src/scss/layout_standard.scss

- /web/static/src/scss/layout_background.scss

- /web/static/src/scss/layout_boxed.scss

- /web/static/src/scss/layout_clean.scss

- /web/static/src/scss/asset_styles_company_report.scss

- /web/static/src/scss/graph_view.scss

- /stock/static/src/scss/report_stock_forecasted.scss

- /stock/static/src/scss/report_stock_rule.scss

- /acs_hms_base/static/src/less/report.less

- /sale/static/src/scss/sale_report.scss


Thanks for your help


Avatar
Opusti
Avtor

Ok thanks i will try

Best Answer

Odoo 14 not using lessc. it seems you have custom module still using less.

install nodejs, reboot (to update the PATH) and install less: 

then run the command in windows command:

C:\> npm install -g less


Avatar
Opusti
Best Answer

The style compilation failed, see the error below. Your recent actions may be the cause, please try reverting the changes you made.

Error: ".small" failed to @extend "small".
       The selector "small" was not found.
       Use "@extend small !optional" if the extend should be able to fail.
        on line 47 of home/rubies/odoo/odoo16/addons/web/static/lib/bootstrap/scss/_type.scss

please

Avatar
Opusti
Avtor Best Answer

Thanks everyone, it worked for me

Avatar
Opusti