Skip to content

Commit

Permalink
[FIX] templates Python 3 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
ncharlot committed Aug 1, 2018
1 parent 1eb72cb commit 349dd81
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion templates/odoo-10.0.init
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ USER={{ odoo_user }}
export LOGNAME=$USER
{% if odoo_init_env %}
# Custom environment variables
{% for name, value in odoo_init_env.iteritems() %}
{% for name, value in odoo_init_env.items() | list %}
export {{ name }}={{ value }}
{% endfor %}
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion templates/odoo-8.0.init
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ USER={{ odoo_user }}
export LOGNAME=$USER
{% if odoo_init_env %}
# Custom environment variables
{% for name, value in odoo_init_env.iteritems() %}
{% for name, value in odoo_init_env.items() | list %}
export {{ name }}={{ value }}
{% endfor %}
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion templates/odoo-9.0.init
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ USER={{ odoo_user }}
export LOGNAME=$USER
{% if odoo_init_env %}
# Custom environment variables
{% for name, value in odoo_init_env.iteritems() %}
{% for name, value in odoo_init_env.items() | list %}
export {{ name }}={{ value }}
{% endfor %}
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion templates/odoo-buildout.init
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ USER={{ odoo_user }}
export LOGNAME=$USER
{% if odoo_init_env %}
# Custom environment variables
{% for name, value in odoo_init_env.iteritems() %}
{% for name, value in odoo_init_env.items() | list %}
export {{ name }}={{ value }}
{% endfor %}
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion templates/odoo-buildout.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ User={{ odoo_user }}
WorkingDirectory={{ odoo_workdir }}
ExecStart={{ odoo_buildout_odoo_bin_path }}{{ odoo_logfile and ' --logfile %s' % odoo_logfile }}
KillMode=mixed
{% for name, value in odoo_init_env.iteritems() %}
{% for name, value in odoo_init_env.items() | list %}
Environment={{ name }}={{ value }}
{% endfor %}

Expand Down
2 changes: 1 addition & 1 deletion templates/odoo-pip.init
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ USER={{ odoo_user }}
export LOGNAME=$USER
{% if odoo_init_env %}
# Custom environment variables
{% for name, value in odoo_init_env.iteritems() %}
{% for name, value in odoo_init_env.items() | list %}
export {{ name }}={{ value }}
{% endfor %}
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion templates/odoo-pip.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ User={{ odoo_user }}
WorkingDirectory={{ odoo_workdir }}
ExecStart={{ odoo_pip_odoo_bin_path }}{{ odoo_logfile and ' --logfile %s' % odoo_logfile }} --config {{ odoo_config_file }}
KillMode=mixed
{% for name, value in odoo_init_env.iteritems() %}
{% for name, value in odoo_init_env.items() | list %}
Environment={{ name }}={{ value }}
{% endfor %}

Expand Down
2 changes: 1 addition & 1 deletion templates/odoo-standard.service
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ KillMode=mixed
{% else %}
ExecStart={{ odoo_rootdir }}/odoo.py{{ odoo_logfile and ' --logfile %s' % odoo_logfile }} --config {{ odoo_config_file }}
{% endif %}
{% for name, value in odoo_init_env.iteritems() %}
{% for name, value in odoo_init_env.items() | list %}
Environment={{ name }}={{ value }}
{% endfor %}

Expand Down

0 comments on commit 349dd81

Please sign in to comment.