Skip to content

[FIX] common: auto-import plugin common/ submodules on load#158

Open
eacm-odoo wants to merge 1 commit into
mainfrom
eacm-vscode-issue
Open

[FIX] common: auto-import plugin common/ submodules on load#158
eacm-odoo wants to merge 1 commit into
mainfrom
eacm-vscode-issue

Conversation

@eacm-odoo
Copy link
Copy Markdown

Description

Modules placed under a plugin's common/ directory were never imported when the plugin loaded: only the plugin package and its commands/ were. Anything in common/ that relied on import-time side effects (subclass registration, decorators, etc.) stayed inert, so plugin extensions could silently fail to apply depending on import order.

Walk common/ after importing the plugin and import each submodule explicitly so its side effects run.

Linked Issues

Link the issues that this PR solves, if any:

  • #[issue number or URL]
  • ...

Compliance

  • I have read the contribution guide
  • I made sure the documentation is up-to-date both in doctrings and the docs directory
  • I have added or modified unit tests where necessary
  • I have added new libraries to the requirements.txt file, if any
  • I have incremented the version number according the versioning guide
  • The PR contains my changes only and no other external commit

@brinkflew brinkflew self-requested a review May 6, 2026 17:45
Modules placed under a plugin's `common/` directory were never imported
when the plugin loaded: only the plugin package and its `commands/` were.
Anything in `common/` that relied on import-time side effects (subclass
registration, decorators, etc.) stayed inert, so plugin extensions could
silently fail to apply depending on import order.

Walk `common/` after importing the plugin and import each submodule
explicitly so its side effects run.
@eacm-odoo eacm-odoo force-pushed the eacm-vscode-issue branch from e7070fc to ac0dcf3 Compare May 6, 2026 18:04
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.

1 participant