Contributing¶
Development Setup¶
-
Clone the repository:
-
Place the modules in your Odoo 19.0 addons path (or symlink them).
-
Install the modules in a development database:
Running Tests¶
With Docker (recommended)¶
The repository includes a Docker-based test runner that handles PostgreSQL setup:
To test a specific module:
The script:
- Starts a PostgreSQL 16 container
- Creates a test database per module
- Runs
odoo --test-enable --test-tags /<module> --stop-after-init - Reports pass/fail based on test output
Without Docker¶
Run tests directly with an Odoo instance:
odoo -d test_db \
--addons-path=/path/to/odoo/addons,/path/to/odoo-job-worker \
--test-enable \
--test-tags /job_worker \
--stop-after-init \
-i job_worker
Code Style¶
Python¶
Follow PEP 8 and the Odoo coding guidelines. The project uses:
- ruff for linting and formatting
Run checks on changed files:
XML / JavaScript¶
Format with prettier:
Pre-Commit Hooks¶
Install pre-commit hooks for automatic checks:
Hooks run automatically on git commit.
Documentation¶
The documentation site is built with MkDocs Material. To preview locally:
Then open http://localhost:8000.
Documentation source files are in the docs/ directory. The site is
automatically built and deployed to GitHub Pages on push to main.
Submitting Changes¶
- Fork the repository
- Create a feature branch from
main - Make your changes with tests
- Run the test suite to verify
- Submit a pull request
Bug Reports¶
File bugs on GitHub Issues. Include:
- Odoo version and PostgreSQL version
- Steps to reproduce
- Expected vs. actual behavior
- Relevant log output or tracebacks
License¶
This project is licensed under LGPL-3.0.