This workspace contains Odoo modules for testing and bug reporting purposes.
Copy the example settings file and customize it for your environment:
cp .vscode/settings.json.example .vscode/settings.jsonThen edit .vscode/settings.json and update:
odoo.user- Your PostgreSQL usernameodoo.password- Your PostgreSQL passwordodoo.addonsPath- Adjust paths if your Odoo installation is in a different locationpython.defaultInterpreterPath- Path to your Odoo virtual environment
Three debug configurations are available in VS Code (F5):
- odoo-bug-report - Start Odoo server normally
- odoo-bug-report-install - Install modules (uses
-iflag) - odoo-bug-report-update - Update modules (uses
-uflag)
Create a PostgreSQL database for this workspace:
createdb odoo-bug-reportA simple demonstration module with:
- A model with a date field
- A computed name field
- Basic CRUD operations
See basic_module/README.md for details.
The .gitignore file excludes personal settings (settings.json) so your credentials won't be committed to the repository.