ubuntu 16.04下Odoo 9.0的若干问题

  1. 升级完后,不能升级安装Odoo,由于python-support的问题,

    解决办法,在如下链接下载,python-support_1.0.15_all.deb

    https://launchpad.net/ubuntu/xenial/amd64/python-support/1.0.15

    然后用sudo dpkg -I python-support_1.0.15_all.deb即可

  2. 打开Odoo的页面,出现TypeError: CleanCSS is not a function

    解决办法参考
    https://github.com/odoo/odoo/issues/9113 中daniel-adb-fa的回答

    The following steps worked for deploying odoo on Ubuntu 16.04:

    1. Install odoo 9.0 from the nightly repo according to documentation.
    2. Install the current versions of less and less-plugin-css via npm. This will install the versions to /usr/local/bin:

      sudo npm install -g less less-plugin-clean-css

    3. Install the symlink /usr/bin/node. This can be done manually, but you can also use an official apt-package for it:

      sudo apt install nodejs-legacy

    4. Now the link to lessc has to be patched to point to the version installed by npm instead of the (broken) distribution version:

      sudo rm /usr/bin/lessc

      sudo ln -s /usr/local/bin/lessc /usr/bin/lessc

    5. This should work, but an update of the distribution package might still break the patched link later. To avoid this, I did

      sudo apt-mark hold node-less.

    Of course, restart the odoo service and don’t forget to clear your browser cache after that.


评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注