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.