Skip to content

Commit

Permalink
Merge pull request #88 from coopdevs/queue_job
Browse files Browse the repository at this point in the history
Add option to enable queue_job module
  • Loading branch information
danypr92 authored Sep 2, 2020
2 parents 95d56b7 + 3793fbd commit 48b64d1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,17 @@ If you need to use the Rest Framework and want to start the server in developmen
```yaml
odoo_role_enable_rest_framework: true
```

This option add to the Odoo configuration file the section and option to development mode: https://github.com/OCA/rest-framework/tree/12.0/base_rest#configuration

* [Queue Job](https://github.com/OCA/queue/blob/12.0/queue_job) support

If you need to use the module queue\_job, use. Don't forget to install the module using *Community Roles*:
```yaml
odoo_role_enable_queue_job: true
```

This option add to the Odoo configuration file the option to enable queue\_job as a new thread/process: https://github.com/OCA/queue/blob/12.0/queue\_job/README.rst#id12

Community Roles
---------------

Expand Down
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,6 @@ odoo_role_odoo_proxy_mode: true

# Support for rest-framework/base_rest: https://github.com/OCA/rest-framework/tree/12.0/base_rest
odoo_role_enabled_rest_framework: false

# Support for Queue Job https://github.com/OCA/queue/blob/12.0/queue_job
odoo_role_enable_queue_job: false
4 changes: 3 additions & 1 deletion templates/odoo.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
logfile = {{ odoo_role_odoo_log_path }}/odoo.log
{% endif %}
log_level = {{ odoo_role_odoo_log_level }}

{% if odoo_role_enable_queue_job %}
server_wide_modules = web,queue_job
{% endif %}
; Custom Modules
addons_path = {{ odoo_role_odoo_path }}/addons,{{ odoo_role_odoo_modules_path }}

Expand Down

0 comments on commit 48b64d1

Please sign in to comment.