Repository navigation
odoo: skip --dev injection for Odoo subcommands - #73
Merged
Merged
Conversation
Odoo subcommand parsers (shell, i18n, scaffold, neutralize, ...) reject server options, so `osh odoo i18n export` failed with "unrecognized arguments: --dev=all". The dev default is now appended only for server runs — the same exemption subcommands already have for dbfilter, the HTTP port check and the demo-data default. An explicit --dev still passes through untouched. Assisted-by: Devin:SWE-2 High
dreispt
force-pushed
the
feature/odoo-subcommand-dev
branch
from
October 29, 2026 08:14
326242b to
2f469c3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
osh odooappended the default--dev=allunconditionally, so Odoo subcommands whose parsers reject server options failed withunrecognized arguments: --dev=all(e.g.osh odoo i18n export,osh odoo scaffold).--devstill passes through untouched, and--no-dev/osh config odoo dev offare unchanged.osh odoodocstring and added a changelog entry.Test plan
pytest tests/test_odoo.py— 26 passed, including the two new cases:i18n exportgets no--dev,shell --dev=xmlkeeps the explicit valueosh odoo i18n export -d <db> -o mod.pot modand-l ptexports now run and write the .pot/.po filesAssisted-by: Devin:SWE-2 High