Skip to content

Commit 4608d96

Browse files
petrus-vhbrunn
andcommitted
Apply suggestions from code review
Co-authored-by: Holger Brunn <mail@hunki-enterprises.com>
1 parent 13a6b0e commit 4608d96

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

CONTRIBUTE.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ way.
5252

5353
Requirements:
5454

55-
- Postrgesql
55+
- Postgresql
5656
- [uv](https://docs.astral.sh/uv/)
5757
- Some dependencies to be able to build some python packages: `libpq-dev`,
5858
`build-essential`, TODO
@@ -65,6 +65,21 @@ download for you if necessary) and install the required dependencies:
6565
uv sync
6666
```
6767

68+
### Development
69+
70+
For addons living in this repository, you can just change code and restart Odoo with the
71+
`uv run` command.
72+
73+
For addons in other repositories, the procedure is as follows:
74+
75+
- check out the repository somewhere, ie /src/\$repo
76+
- add the following line to `pyproject.toml` in the `[tool.uv.sources]` section:
77+
78+
odoo14-addon-$youraddon = { path = "/srv/$repo/setup/$youraddon", editable = true }
79+
80+
- run `uv sync`
81+
- restart Odoo
82+
6883
### Setup database and launch tests
6984

7085
- setup database with demo data and all oca modules installed

docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ services:
3030
interval: 2s
3131
timeout: 200ms
3232
retries: 150
33+
depends_on:
34+
- db
35+
- kwkhtmltopdf
3336

3437
db:
3538
image: postgres

0 commit comments

Comments
 (0)