Skip to content

[IMP] server_environment: allow env variable conf#189

Merged
OCA-git-bot merged 1 commit into
OCA:17.0from
DynAppsNV:17.0-mig-server_environment
Jul 11, 2024
Merged

[IMP] server_environment: allow env variable conf#189
OCA-git-bot merged 1 commit into
OCA:17.0from
DynAppsNV:17.0-mig-server_environment

Conversation

@denaux

@denaux denaux commented Jun 24, 2024

Copy link
Copy Markdown

I would like to propose a forward port of one specific commit from v14. This opens up compatibility with Odoo.sh.

@simahawk simahawk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@denaux thanks for your contrib.
Question: how have you ported the commit? Seems the original authorship is lost.
You should use cherry pick to preserve it. Could you check please?

@denaux denaux force-pushed the 17.0-mig-server_environment branch from f77ac73 to 38090e1 Compare June 27, 2024 08:14
@denaux

denaux commented Jun 27, 2024

Copy link
Copy Markdown
Author

@simahawk Thanks for the heads-up. This should be fixed now.

@simahawk

Copy link
Copy Markdown
Contributor

/ocabot merge minor

Thanks! Would you mind opening a PR for 14 and 15?

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 17.0-ocabot-merge-pr-189-by-simahawk-bump-minor, awaiting test results.

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@OCA-git-bot OCA-git-bot merged commit 386cc0b into OCA:17.0 Jul 11, 2024
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 759299b. Thanks a lot for contributing to OCA. ❤️

ivantodorovich added a commit to camptocamp/docker-odoo-project that referenced this pull request Jun 30, 2026
Originally, this was the only way to configure the running environment for the
server_environment module.

3 years ago, a PR improved the module in version 14.0, to read the running
environment from the environment variable `RUNNING_ENV` instead of the config
file, if set.

Original PR in 14.0:
- OCA/server-env#146

Later, this PR was forward ported to 16.0 and 17.0 (sadly no 15.0):
- 15.0: NOT PORTED
- 16.0: OCA/server-env#223
- 17.0: OCA/server-env#189

Finally, it was fully integrated into the migrations to 18.0 and 19.0.
So it's safe to assume that in 18.0 and 19.0, no matter the module version used,
the running environment will be read from the RUNNING_ENV variable.

---

In 19.0, Odoo started complaining about unknown config file options, so this
supresses the following warning:

```
WARNING ? odoo.tools.config: unknown option 'running_env' in the config file at
/etc/odoo.cfg, option stored as-is, without parsing
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants