diff --git a/roles/odoo/tasks/main.yml b/roles/odoo/tasks/main.yml index addad8f..5835f06 100644 --- a/roles/odoo/tasks/main.yml +++ b/roles/odoo/tasks/main.yml @@ -35,17 +35,21 @@ dest: /opt/odoo depth: 1 +# Manual temporary fix for +# https://github.com/odoo/odoo/issues/62569 + +- name: Fix updated requirement before installing + lineinfile: + regexp: "^gevent==.* ; python_version >= '3.7'$" + line: "gevent==20.12.0 ; python_version >= '3.7'" + path: /opt/odoo/core/requirements.txt + - name: Install python requirements for Odoo pip: virtualenv: /home/odoo/.venv/odoo virtualenv_command: python3.8 -m venv requirements: /opt/odoo/core/requirements.txt - # Possible errors in gevent module with Ubuntu 20.04 - # (chat, stars, don't update interactively on screen) - # $ pip install --upgrade gevent - # Successfully installed gevent-20.9.0 greenlet-0.4.17 ... - - name: Download and install wkhtmltopdf apt: deb: '{{ wkhtmltopdf_location }}'