Skip to content

Fix Odoo shell runtime script imports#38

Merged
cbusillo merged 1 commit into
mainfrom
fix/odoo-shell-scripts-pythonpath
May 10, 2026
Merged

Fix Odoo shell runtime script imports#38
cbusillo merged 1 commit into
mainfrom
fix/odoo-shell-scripts-pythonpath

Conversation

@cbusillo
Copy link
Copy Markdown
Owner

Summary

  • prepend /volumes/scripts to PYTHONPATH for devkit-managed Odoo shell subprocesses
  • apply the import path contract to both startup and data workflow runners
  • add unit coverage for generated Odoo shell helper imports and document the runtime behavior

Closes #37.

Verification

  • uv run python -m unittest tests.test_odoo_startup tests.test_odoo_data_workflows
  • uv run python -m unittest discover -s tests
  • uv run ruff check --diff docker/scripts/run_odoo_startup.py docker/scripts/run_odoo_data_workflows.py tests/test_odoo_startup.py tests/test_odoo_data_workflows.py
  • uv run ruff format --check docker/scripts/run_odoo_startup.py docker/scripts/run_odoo_data_workflows.py tests/test_odoo_startup.py tests/test_odoo_data_workflows.py
  • uv run ruff check docker/scripts/run_odoo_startup.py docker/scripts/run_odoo_data_workflows.py tests/test_odoo_startup.py tests/test_odoo_data_workflows.py

@cbusillo cbusillo merged commit c80c291 into main May 10, 2026
4 checks passed
@cbusillo cbusillo deleted the fix/odoo-shell-scripts-pythonpath branch May 10, 2026 18:12
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.

Make website bootstrap helper importable in Odoo shell startup

1 participant