diff --git a/tasks/main.yml b/tasks/main.yml index 306d184..782427b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -19,6 +19,15 @@ - libmagic-dev state: present +- name: Install libjpeg-dev + become: yes + apt: + update_cache: yes + pkg: + - libjpeg-dev + state: present + when: odoo_role_odoo_version < "12.0" + - name: Check if wkhtmltopdf is installed shell: set -o pipefail && dpkg -s wkhtmltox | grep 'install ok installed' args: @@ -77,6 +86,14 @@ path: "{{ odoo_role_odoo_path }}/requirements.txt" line: python-magic +- name: Force python-stdnum==1.9 + become: yes + become_user: "{{ odoo_role_odoo_user }}" + lineinfile: + path: "{{ odoo_role_odoo_path }}/requirements.txt" + line: python-stdnum==1.9 + when: odoo_role_odoo_version < "12.0" + - name: Install Odoo python requirements become: yes become_user: "{{ odoo_role_odoo_user }}"