تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
18217 أدوات العرض

i tried to to run odoo 10 from eclipse in windows so i m getting this at the top of the page (lessc is installed so please tell me what s wrong? help me !)

no-js" argument is deprecated, as inline JavaScript is disabled by default. Use "--js" to enable inline JavaScript (not recommended)

This error occured while compiling the bundle 'web.assets_backend' 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
الصورة الرمزية
إهمال
أفضل إجابة

Dear Dales & iuv,

I think it has several reasons for this js or style sheet error.

I got a workaround for the same, (Even I am not recommending this, but try it )

  1. in config file (odoo.conf file)of odoo change memory allocation (Even you are not configured the memory allocation yet)

    replace the below argument if you already configured or add new argument if didn't configure yet.

    limit_memory_hard: 2684354560

    limit_memory_soft: 2147483648

  2. Make sure that you are installed the less package, In ubuntu, go to terminal and hit the below--
    sudo npm install -g less@3.0.4 less-plugin-clean-css

  3. Then restart your odoo server.


    Hope it is working fine.
    I got the solution for v10 to v13 with this.

    Thank You


الصورة الرمزية
إهمال

Thank you so much! I've installed less@3.10.3 for Odoo 10 on Ubuntu 20. Running perfectly now!

I have had the problem with version 11 in Ubuntu 20.04 and I have solved it by installing less-plugin-clean-css in less@3.0.4. Thanks a lot.

أفضل إجابة

I have additional errors, as follows

ArgumentError: Error evaluating function `floor`: argument must be a number in - on line 2475, column 18:

2474 @planner-height: 13px;

2475 @planner-margin: floor((@odoo-navbar-height - 2 - @planner-height)/2);

2476 .o_planner_systray {

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

الصورة الرمزية
إهمال