Skip to content

[ADD] cli: detect Odoo edition (CE/EE) and expose odoo_edition#17

Merged
nilshamerlinck merged 1 commit into
trobz:mainfrom
dzungtran89:feat/detect-odoo-edition
Jun 22, 2026
Merged

[ADD] cli: detect Odoo edition (CE/EE) and expose odoo_edition#17
nilshamerlinck merged 1 commit into
trobz:mainfrom
dzungtran89:feat/detect-odoo-edition

Conversation

@dzungtran89

Copy link
Copy Markdown
Contributor

What

Surface the Odoo edition (CE/EE) so consumers (deploy.py config step) can drive edition-specific odoo.conf overrides. Follow-up of trobz/deploy.py#43 (comment), Forge-ID 68011.

Contents

  • get_odoo_edition(addons_path) in main.py: name-based over the resolved addons_path — EE if an enterprise/odoo-enterprise dir is present, CE if addons resolve without it, None when empty. Zero-IO, no detector changes.
  • odoo_edition key in --format json (cli.py).
  • Odoo edition: line in --verbose output (main.py).
  • Edition assertions folded into existing test_layouts (per-layout) and test_format_json_trobz_layout.

Surface the Odoo edition in `--format json` (new `odoo_edition` key) and
in the `--verbose` text output. Inferred name-based from the resolved
addons_path: EE when an `enterprise`/`odoo-enterprise` dir is present,
otherwise CE, and None when no addons resolve.

Follow-up of trobz/deploy.py#43 (comment)

Forge-ID: 68011
@nilshamerlinck nilshamerlinck merged commit df389ce into trobz:main Jun 22, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants