Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
6 Trả lời
46715 Lượt xem

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

Could not get content for /muk_web_branding/static/src/scss/primary_colors.custom.muk_web_branding._assets_primary_variables.scss defined in bundle 'web.assets_common'.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

I was also getting similar problem in Odoo 11:


2021-06-28 16:37:04,158 4908 WARNING SAS_cellntell odoo.addons.base.ir.ir_qweb.assetsbundle: (b'', b'The "--no-js" argument is deprecated, as inline JavaScript is disabled by default. Use "--js" to enable inline JavaScript (not recommended).\nArgumentError: Error evaluating function `floor`: argument must be a number in - on line 3251, column 17:\n3250 height: @planner-height;\n3251 margin: floor((@odoo-navbar-height - @planner-height)/2) 10px 0;\n3252 cursor: pointer;\n\n')This error occured while compiling the bundle 'web.assets_common' containing:
- /web/static/lib/bootstrap/less/variables.less
- /web/static/lib/bootstrap/less/mixins/vendor-prefixes.less
- /web/static/lib/bootstrap/less/mixins/buttons.less
- /web/static/lib/bootstrap/less/mixins/clearfix.less
- /web/static/lib/bootstrap/less/mixins/size.less
- /web/static/src/less/variables.less
- /web_enterprise/static/src/less/variables.less
- /web/static/src/less/utils.less
- /web_editor/static/src/less/web_editor.variables.less
- /web/static/lib/bootstrap-datetimepicker/src/less/_bootstrap-datetimepicker.less
- /web/static/src/less/fonts.less
- /web/static/src/less/navbar.less
- /web/static/src/less/mimetypes.less
- /web/static/src/less/modal.less
- /web/static/src/less/animation.less
- /web/static/src/less/rainbow.less
- /web/static/src/less/datepicker.less
- /web_enterprise/static/src/less/fonts.less
- /web_planner/static/src/less/web_planner_common.less
- /web_tour/static/src/less/tip.less
- /web_tour/static/src/less/keyframes.less
- /stock/static/src/less/stock_traceability_report.less

I have checked the less version in Ubuntu 20.04:

lessc --version
lessc 4.1.1 (Less Compiler) [JavaScript]

I have installaed less@3.10.3

sudo npm install -g less@3.10.3

This has solved my issue.

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

thank you for help, impossible. I restart the server

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Bro,  after restore backup, I was also getting this error.  My operating system is WINDOWS 10. How can I solve this problem? 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

vamos a probar

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Try this command

sudo apt-get install npm

sudo npm install -g less@3.10.3

Restart your odoo 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

You may be removed the muk_web_branding addon from addons path without un-install.  Try to put back the addon on the same path.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 8 19
4542
2
thg 9 23
7017
4
thg 5 25
50552
3
thg 10 21
18933
tmp is full Đã xử lý
1
thg 6 19
8132