Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: bump to Python 3.8 #155

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ An Odoo Ansible Provisioning Role
=========================================

This an Ansible role for provisioning Odoo. It supports:
* Odoo 14
* Odoo 13
* Odoo 12
* Odoo 11
* Odoo 10

I has not been tested yet with Odoo 13.
It has not been production-tested yet with Odoo 15.

Requirements
------------
Expand All @@ -23,6 +25,13 @@ Role Variables
--------------
Available variables are listed below, along with default values:

* Python VirtualEnv

```yaml
odoo_role_python_version: "3.8.17"
odoo_role_venv_name: "odoo"
```

* Edition

This role supports installing Odoo following two different strategies: `git` (from a git repository) and `tar` (a package or compressed release file).
Expand Down Expand Up @@ -235,7 +244,7 @@ Community Roles
#### Deploy
To use community roles, you need to deploy this modules in the server. This role manage the modules deployment with `pip`.

You can define a `requirements.txt` file to manage the modules and ensure the version installed:
You can define a `requirements.txt` file to manage the modules and ensure the version installed with:

```
# requirements.txt
Expand All @@ -246,6 +255,7 @@ odoo11-addon-contract-variable-quantity==11.0.1.2.1
```

> The default the `requirements.txt` file path is `"{{ inventory_dir }}/../files/requirements.txt"`.
> You can choose a different one by setting `odoo_role_community_modules_requirements_path` variable.

# Install
Once the modules are in the server, you need to install them in the database.
Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ odoo_role_odoo_user: odoo
odoo_role_odoo_group: odoo

# VirtualEnv vars
odoo_role_python_version: "3.7.7"
odoo_role_python_version: "3.8.17"
odoo_role_venv_name: "odoo"
odoo_role_odoo_venv_path: "/home/{{ odoo_role_odoo_user }}/pyenv/versions/{{ odoo_role_venv_name }}/"

Expand Down