Skip to content

Commit

Permalink
Merge pull request #102 from coopdevs/feature/odoo-11-current-deps
Browse files Browse the repository at this point in the history
Fixed stdnum version to 1.9 and install libjpeg-dev for v11
  • Loading branch information
cesarlr authored Feb 15, 2021
2 parents a89bff1 + 3a2966d commit 4e7371a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}"
Expand Down

0 comments on commit 4e7371a

Please sign in to comment.