Skip to content

Commit

Permalink
imp: Replace environment variable OPENERP_SERVER with ODOO_RC
Browse files Browse the repository at this point in the history
It's the officially supported way to point to the config file since Odoo 10.0.
OPENERP_SERVER will be officially deprecated in Odoo 19.0.

See: https://github.com/odoo/odoo/blob/4185fe84/odoo/tools/config.py#L464
  • Loading branch information
ivantodorovich committed Jan 2, 2025
1 parent 21e2c38 commit 1618162
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion 12.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ ENV ODOO_VERSION=12.0 \
ODOO_DATA_PATH=/odoo/data \
DEMO=False \
ADDONS_PATH=/odoo/odoo/addons,/odoo/odoo/src/odoo/addons \
OPENERP_SERVER=/odoo/odoo.cfg
ODOO_RC=/odoo/odoo.cfg

ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["odoo"]
2 changes: 1 addition & 1 deletion 13.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ ENV ODOO_VERSION=13.0 \
ODOO_DATA_PATH=/odoo/data \
DEMO=False \
ADDONS_PATH=/odoo/odoo/addons,/odoo/odoo/src/odoo/addons \
OPENERP_SERVER=/odoo/odoo.cfg
ODOO_RC=/odoo/odoo.cfg

ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["odoo"]
2 changes: 1 addition & 1 deletion 14.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ ENV ODOO_VERSION=14.0 \
ODOO_DATA_PATH=/odoo/data \
DEMO=False \
ADDONS_PATH=/odoo/local-src,/odoo/src/addons \
OPENERP_SERVER=/odoo/odoo.cfg
ODOO_RC=/odoo/odoo.cfg

ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["odoo"]
2 changes: 1 addition & 1 deletion 15.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ ENV ODOO_VERSION=15.0 \
ODOO_DATA_PATH=/odoo/data \
DEMO=False \
ADDONS_PATH=/odoo/odoo/addons,/odoo/odoo/src/odoo/addons \
OPENERP_SERVER=/odoo/odoo.cfg
ODOO_RC=/odoo/odoo.cfg

ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["odoo"]
2 changes: 1 addition & 1 deletion 16.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ ENV ODOO_VERSION=16.0 \
ODOO_DATA_PATH=/odoo/data \
DEMO=False \
ADDONS_PATH=/odoo/odoo/addons,/odoo/odoo/src/odoo/addons \
OPENERP_SERVER=/odoo/odoo.cfg
ODOO_RC=/odoo/odoo.cfg

ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["odoo"]
2 changes: 1 addition & 1 deletion 17.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ ENV ODOO_VERSION=17.0 \
ODOO_DATA_PATH=/odoo/data \
DEMO=False \
ADDONS_PATH=/odoo/odoo/addons,/odoo/odoo/src/odoo/addons \
OPENERP_SERVER=/odoo/odoo.cfg
ODOO_RC=/odoo/odoo.cfg

ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["odoo"]
2 changes: 1 addition & 1 deletion 18.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ ENV ODOO_VERSION=18.0 \
ODOO_DATA_PATH=/odoo/data \
DEMO=False \
ADDONS_PATH=/odoo/odoo/addons,/odoo/odoo/src/odoo/addons \
OPENERP_SERVER=/odoo/odoo.cfg
ODOO_RC=/odoo/odoo.cfg

ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["odoo"]
2 changes: 2 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
.. **Features and Improvements**
* Replace environment variable OPENERP_SERVER with ODOO_RC

.. **Bugfixes**
.. **Libraries**
Expand Down

0 comments on commit 1618162

Please sign in to comment.