odoo-dev 0.3.2__tar.gz → 0.3.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- odoo_dev-0.3.3/PKG-INFO +183 -0
- odoo_dev-0.3.3/README.md +169 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/pyproject.toml +1 -1
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/src/odoo_dev/__init__.py +1 -1
- odoo_dev-0.3.2/PKG-INFO +0 -19
- odoo_dev-0.3.2/README.md +0 -5
- odoo_dev-0.3.2/tests/fixtures/odoo-empty/.git +0 -1
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/.claude/settings.json +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/.claude/settings.local.json +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/.gitignore +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/.gitmodules +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/.python-version +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/src/odoo_dev/cli.py +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/src/odoo_dev/commands/__init__.py +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/src/odoo_dev/commands/db.py +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/src/odoo_dev/commands/docker.py +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/src/odoo_dev/commands/run.py +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/src/odoo_dev/commands/setup.py +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/src/odoo_dev/config.py +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/src/odoo_dev/templates/__init__.py +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/src/odoo_dev/templates/docker/Dockerfile +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/src/odoo_dev/templates/docker/__init__.py +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/src/odoo_dev/templates/docker/docker-entrypoint.sh +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/src/odoo_dev/templates/vscode/__init__.py +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/src/odoo_dev/templates/vscode/launch.json +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/src/odoo_dev/templates/vscode/settings.json +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/src/odoo_dev/templates/vscode/tasks.json +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/src/odoo_dev/utils/__init__.py +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/src/odoo_dev/utils/console.py +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/__init__.py +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/fixtures/__init__.py +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/fixtures/odoo-empty/.gitignore +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/fixtures/odoo-empty/.gitlab-ci.yml +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/fixtures/odoo-empty/.gitmodules +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/fixtures/odoo-empty/.repos/.gitkeep +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/fixtures/odoo-empty/Notes/Warning Upgrade all +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/fixtures/odoo-empty/README.md +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/fixtures/odoo-empty/addons/.gitkeep +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/fixtures/odoo-empty/note.txt +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/fixtures/odoo-empty/requirements.txt +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/fixtures/odoo-empty/tools/abstorelsymlink.sh +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/fixtures/odoo-empty/tools/adaptation.md +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/fixtures/odoo-empty/tools/after_migration.sh +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/fixtures/odoo-empty/tools/checkout2 +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/fixtures/odoo-empty/tools/cleanup.sql +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/fixtures/odoo-empty/tools/deploy +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/fixtures/odoo-empty/tools/fix_mail_templates.sql +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/fixtures/odoo-empty/tools/gitpull +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/fixtures/odoo-empty/tools/main.py +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/fixtures/odoo-empty/tools/modules_cleanup.sql +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/fixtures/odoo-empty/tools/post-upgrade steps.md +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/fixtures/odoo-empty/tools/pre_commit_hook.py +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/fixtures/odoo-empty/tools/requirements.txt +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/fixtures/odoo-empty/tools/test +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/fixtures/odoo-empty/tools/update_addon_versions.py +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/test_cli.py +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/test_config.py +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/test_db.py +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/test_drop_database.py +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/test_integration.py +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/test_run.py +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/tests/test_setup.py +0 -0
- {odoo_dev-0.3.2 → odoo_dev-0.3.3}/uv.lock +0 -0
odoo_dev-0.3.3/PKG-INFO
ADDED
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: odoo-dev
|
|
3
|
+
Version: 0.3.3
|
|
4
|
+
Summary: Odoo Development Environment Helper
|
|
5
|
+
Project-URL: Homepage, https://git.bemade.org/bemade/odoo-dev
|
|
6
|
+
Project-URL: Repository, https://git.bemade.org/bemade/odoo-dev
|
|
7
|
+
Project-URL: Issues, https://git.bemade.org/bemade/odoo-dev/-/issues
|
|
8
|
+
License-Expression: LGPL-3.0
|
|
9
|
+
Requires-Python: >=3.12
|
|
10
|
+
Requires-Dist: pyyaml>=6.0
|
|
11
|
+
Requires-Dist: rich>=13.0.0
|
|
12
|
+
Requires-Dist: typer>=0.9.0
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
|
|
15
|
+
# odoo-dev
|
|
16
|
+
|
|
17
|
+
A CLI tool for managing Odoo development environments. Handles local Python setup, Docker containers, database operations, and more.
|
|
18
|
+
|
|
19
|
+
It is the successor to the older `odoo-deploy` shell scripts — if you have notes for `odoo-deploy`, the rough mapping is: `odoo-dev docker start/stop/build` replaces the old `odoo-dev.sh start/stop/build`, and `odoo-dev run`/`test`/`shell` give you a local (venv-based) workflow that `odoo-deploy` didn't.
|
|
20
|
+
|
|
21
|
+
## Installation
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
# Install with uv (recommended) — installs the published package from PyPI
|
|
25
|
+
uv tool install odoo-dev
|
|
26
|
+
|
|
27
|
+
# Or with pip
|
|
28
|
+
pip install odoo-dev
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Then make sure the install location is on your `PATH` (uv prints the path; usually `~/.local/bin`):
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
uv tool update-shell # or: export PATH="$HOME/.local/bin:$PATH"
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Quick Start
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
# In your Odoo project directory
|
|
41
|
+
cd my-odoo-project
|
|
42
|
+
|
|
43
|
+
# Full setup: clone Odoo repos, create venv, install deps, configure VSCode
|
|
44
|
+
odoo-dev setup
|
|
45
|
+
|
|
46
|
+
# Or for community edition only
|
|
47
|
+
odoo-dev setup --community
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
`setup` reads `ODOO_VERSION` / `PYTHON_VERSION` from a `.env` in the project root (or
|
|
51
|
+
prompts for them and offers to save). It then clones the Odoo repos, builds a `.venv`,
|
|
52
|
+
installs system dependencies, and generates `conf/odoo.conf`. It will offer to set up
|
|
53
|
+
Docker at the end — answer "no" if you only want the local venv workflow.
|
|
54
|
+
|
|
55
|
+
## Database setup (read this before your first `run`/`test`)
|
|
56
|
+
|
|
57
|
+
The generated `conf/odoo.conf` connects as PostgreSQL user **`odoo`** over the local
|
|
58
|
+
socket. You need a running PostgreSQL server and a matching role. `setup` installs
|
|
59
|
+
PostgreSQL but does **not** start it or create the role, so on a fresh machine do this
|
|
60
|
+
once:
|
|
61
|
+
|
|
62
|
+
**macOS (Homebrew):**
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
brew services start postgresql@18 # start the server (use your installed version)
|
|
66
|
+
createuser -s odoo # create the role odoo.conf expects
|
|
67
|
+
# Homebrew's versioned postgres is keg-only; add its bin to PATH if psql/createuser aren't found:
|
|
68
|
+
# export PATH="$(brew --prefix postgresql@18)/bin:$PATH"
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**Debian/Ubuntu:**
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
sudo systemctl start postgresql
|
|
75
|
+
sudo -u postgres createuser -s odoo
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
You can change the DB user/password in `conf/odoo.conf` if you prefer a different role.
|
|
79
|
+
|
|
80
|
+
## Commands
|
|
81
|
+
|
|
82
|
+
### Local Development (default)
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
odoo-dev run # Start Odoo locally (default port 8069)
|
|
86
|
+
odoo-dev run -d mydb -p 8070 # Pick a database and HTTP port
|
|
87
|
+
odoo-dev run -d mydb -i base # Initialize module(s) on start
|
|
88
|
+
odoo-dev run -d mydb --dev reload # With hot reload
|
|
89
|
+
odoo-dev run --debug # With debugpy (VSCode attach on 5678)
|
|
90
|
+
odoo-dev shell mydb # Open an Odoo shell
|
|
91
|
+
odoo-dev update base -d mydb # Update modules
|
|
92
|
+
odoo-dev test my_module # Run a module's tests (coverage on by default)
|
|
93
|
+
odoo-dev test my_module --test-tags my_module --no-coverage
|
|
94
|
+
odoo-dev test # Auto-discover & test all addons in addons/
|
|
95
|
+
odoo-dev scaffold my_module # Create a new module
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
> Note: the HTTP port flag is `-p` / `--port` (not `--http-port`).
|
|
99
|
+
|
|
100
|
+
### Database Operations
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
odoo-dev db list # List databases
|
|
104
|
+
odoo-dev db restore backup.zip # Restore from backup (neutralized by default)
|
|
105
|
+
odoo-dev db restore backup.zip mydb --no-neutralize
|
|
106
|
+
odoo-dev db drop mydb # Drop database
|
|
107
|
+
odoo-dev db neutralize mydb # Disable emails/crons
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Docker (optional)
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
odoo-dev docker start # Start containers
|
|
114
|
+
odoo-dev docker stop # Stop containers
|
|
115
|
+
odoo-dev docker restart # Restart containers
|
|
116
|
+
odoo-dev docker logs # View logs
|
|
117
|
+
odoo-dev docker build # Rebuild image
|
|
118
|
+
odoo-dev docker shell mydb # Shell in container
|
|
119
|
+
odoo-dev docker psql # PostgreSQL shell
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### Setup Commands
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
odoo-dev setup # Full setup
|
|
126
|
+
odoo-dev setup --community # Community edition only
|
|
127
|
+
odoo-dev setup-venv # Just create the venv (no repo clone)
|
|
128
|
+
odoo-dev vscode # Configure VSCode debugging
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## Project Structure
|
|
132
|
+
|
|
133
|
+
odoo-dev expects this project structure:
|
|
134
|
+
|
|
135
|
+
```
|
|
136
|
+
my-odoo-project/
|
|
137
|
+
├── .env # Optional: ODOO_VERSION, PYTHON_VERSION
|
|
138
|
+
├── addons/ # Your custom addons
|
|
139
|
+
├── requirements.txt # Project-specific Python deps
|
|
140
|
+
├── odoo/ # Cloned by setup
|
|
141
|
+
├── enterprise/ # Cloned by setup (unless --community)
|
|
142
|
+
├── design-themes/ # Cloned by setup
|
|
143
|
+
├── .venv/ # Created by setup
|
|
144
|
+
└── conf/
|
|
145
|
+
└── odoo.conf # Created by setup
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
## Configuration
|
|
149
|
+
|
|
150
|
+
Create a `.env` file in your project root:
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
ODOO_VERSION=19.0
|
|
154
|
+
PYTHON_VERSION=3.12
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
## Requirements
|
|
158
|
+
|
|
159
|
+
- Python 3.12+
|
|
160
|
+
- uv (recommended) or pip
|
|
161
|
+
- Git
|
|
162
|
+
- PostgreSQL (for local development — server + an `odoo` role; see "Database setup")
|
|
163
|
+
- Docker (optional, for containerized development)
|
|
164
|
+
|
|
165
|
+
## Development
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
# Clone and install for development
|
|
169
|
+
git clone git@github.com:bemade/odoo-dev.git
|
|
170
|
+
cd odoo-dev
|
|
171
|
+
uv sync
|
|
172
|
+
|
|
173
|
+
# Run tests
|
|
174
|
+
uv run pytest # All tests
|
|
175
|
+
uv run pytest -m "not slow" # Fast tests only
|
|
176
|
+
|
|
177
|
+
# Build
|
|
178
|
+
uv build
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
## License
|
|
182
|
+
|
|
183
|
+
LGPL-3. For complete license terms, visit https://www.gnu.org/licenses/lgpl-3.0.en.html
|
odoo_dev-0.3.3/README.md
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
# odoo-dev
|
|
2
|
+
|
|
3
|
+
A CLI tool for managing Odoo development environments. Handles local Python setup, Docker containers, database operations, and more.
|
|
4
|
+
|
|
5
|
+
It is the successor to the older `odoo-deploy` shell scripts — if you have notes for `odoo-deploy`, the rough mapping is: `odoo-dev docker start/stop/build` replaces the old `odoo-dev.sh start/stop/build`, and `odoo-dev run`/`test`/`shell` give you a local (venv-based) workflow that `odoo-deploy` didn't.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# Install with uv (recommended) — installs the published package from PyPI
|
|
11
|
+
uv tool install odoo-dev
|
|
12
|
+
|
|
13
|
+
# Or with pip
|
|
14
|
+
pip install odoo-dev
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Then make sure the install location is on your `PATH` (uv prints the path; usually `~/.local/bin`):
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
uv tool update-shell # or: export PATH="$HOME/.local/bin:$PATH"
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Quick Start
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
# In your Odoo project directory
|
|
27
|
+
cd my-odoo-project
|
|
28
|
+
|
|
29
|
+
# Full setup: clone Odoo repos, create venv, install deps, configure VSCode
|
|
30
|
+
odoo-dev setup
|
|
31
|
+
|
|
32
|
+
# Or for community edition only
|
|
33
|
+
odoo-dev setup --community
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
`setup` reads `ODOO_VERSION` / `PYTHON_VERSION` from a `.env` in the project root (or
|
|
37
|
+
prompts for them and offers to save). It then clones the Odoo repos, builds a `.venv`,
|
|
38
|
+
installs system dependencies, and generates `conf/odoo.conf`. It will offer to set up
|
|
39
|
+
Docker at the end — answer "no" if you only want the local venv workflow.
|
|
40
|
+
|
|
41
|
+
## Database setup (read this before your first `run`/`test`)
|
|
42
|
+
|
|
43
|
+
The generated `conf/odoo.conf` connects as PostgreSQL user **`odoo`** over the local
|
|
44
|
+
socket. You need a running PostgreSQL server and a matching role. `setup` installs
|
|
45
|
+
PostgreSQL but does **not** start it or create the role, so on a fresh machine do this
|
|
46
|
+
once:
|
|
47
|
+
|
|
48
|
+
**macOS (Homebrew):**
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
brew services start postgresql@18 # start the server (use your installed version)
|
|
52
|
+
createuser -s odoo # create the role odoo.conf expects
|
|
53
|
+
# Homebrew's versioned postgres is keg-only; add its bin to PATH if psql/createuser aren't found:
|
|
54
|
+
# export PATH="$(brew --prefix postgresql@18)/bin:$PATH"
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
**Debian/Ubuntu:**
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
sudo systemctl start postgresql
|
|
61
|
+
sudo -u postgres createuser -s odoo
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
You can change the DB user/password in `conf/odoo.conf` if you prefer a different role.
|
|
65
|
+
|
|
66
|
+
## Commands
|
|
67
|
+
|
|
68
|
+
### Local Development (default)
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
odoo-dev run # Start Odoo locally (default port 8069)
|
|
72
|
+
odoo-dev run -d mydb -p 8070 # Pick a database and HTTP port
|
|
73
|
+
odoo-dev run -d mydb -i base # Initialize module(s) on start
|
|
74
|
+
odoo-dev run -d mydb --dev reload # With hot reload
|
|
75
|
+
odoo-dev run --debug # With debugpy (VSCode attach on 5678)
|
|
76
|
+
odoo-dev shell mydb # Open an Odoo shell
|
|
77
|
+
odoo-dev update base -d mydb # Update modules
|
|
78
|
+
odoo-dev test my_module # Run a module's tests (coverage on by default)
|
|
79
|
+
odoo-dev test my_module --test-tags my_module --no-coverage
|
|
80
|
+
odoo-dev test # Auto-discover & test all addons in addons/
|
|
81
|
+
odoo-dev scaffold my_module # Create a new module
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
> Note: the HTTP port flag is `-p` / `--port` (not `--http-port`).
|
|
85
|
+
|
|
86
|
+
### Database Operations
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
odoo-dev db list # List databases
|
|
90
|
+
odoo-dev db restore backup.zip # Restore from backup (neutralized by default)
|
|
91
|
+
odoo-dev db restore backup.zip mydb --no-neutralize
|
|
92
|
+
odoo-dev db drop mydb # Drop database
|
|
93
|
+
odoo-dev db neutralize mydb # Disable emails/crons
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Docker (optional)
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
odoo-dev docker start # Start containers
|
|
100
|
+
odoo-dev docker stop # Stop containers
|
|
101
|
+
odoo-dev docker restart # Restart containers
|
|
102
|
+
odoo-dev docker logs # View logs
|
|
103
|
+
odoo-dev docker build # Rebuild image
|
|
104
|
+
odoo-dev docker shell mydb # Shell in container
|
|
105
|
+
odoo-dev docker psql # PostgreSQL shell
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### Setup Commands
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
odoo-dev setup # Full setup
|
|
112
|
+
odoo-dev setup --community # Community edition only
|
|
113
|
+
odoo-dev setup-venv # Just create the venv (no repo clone)
|
|
114
|
+
odoo-dev vscode # Configure VSCode debugging
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## Project Structure
|
|
118
|
+
|
|
119
|
+
odoo-dev expects this project structure:
|
|
120
|
+
|
|
121
|
+
```
|
|
122
|
+
my-odoo-project/
|
|
123
|
+
├── .env # Optional: ODOO_VERSION, PYTHON_VERSION
|
|
124
|
+
├── addons/ # Your custom addons
|
|
125
|
+
├── requirements.txt # Project-specific Python deps
|
|
126
|
+
├── odoo/ # Cloned by setup
|
|
127
|
+
├── enterprise/ # Cloned by setup (unless --community)
|
|
128
|
+
├── design-themes/ # Cloned by setup
|
|
129
|
+
├── .venv/ # Created by setup
|
|
130
|
+
└── conf/
|
|
131
|
+
└── odoo.conf # Created by setup
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## Configuration
|
|
135
|
+
|
|
136
|
+
Create a `.env` file in your project root:
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
ODOO_VERSION=19.0
|
|
140
|
+
PYTHON_VERSION=3.12
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
## Requirements
|
|
144
|
+
|
|
145
|
+
- Python 3.12+
|
|
146
|
+
- uv (recommended) or pip
|
|
147
|
+
- Git
|
|
148
|
+
- PostgreSQL (for local development — server + an `odoo` role; see "Database setup")
|
|
149
|
+
- Docker (optional, for containerized development)
|
|
150
|
+
|
|
151
|
+
## Development
|
|
152
|
+
|
|
153
|
+
```bash
|
|
154
|
+
# Clone and install for development
|
|
155
|
+
git clone git@github.com:bemade/odoo-dev.git
|
|
156
|
+
cd odoo-dev
|
|
157
|
+
uv sync
|
|
158
|
+
|
|
159
|
+
# Run tests
|
|
160
|
+
uv run pytest # All tests
|
|
161
|
+
uv run pytest -m "not slow" # Fast tests only
|
|
162
|
+
|
|
163
|
+
# Build
|
|
164
|
+
uv build
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
## License
|
|
168
|
+
|
|
169
|
+
LGPL-3. For complete license terms, visit https://www.gnu.org/licenses/lgpl-3.0.en.html
|
odoo_dev-0.3.2/PKG-INFO
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: odoo-dev
|
|
3
|
-
Version: 0.3.2
|
|
4
|
-
Summary: Odoo Development Environment Helper
|
|
5
|
-
Project-URL: Homepage, https://git.bemade.org/bemade/odoo-dev
|
|
6
|
-
Project-URL: Repository, https://git.bemade.org/bemade/odoo-dev
|
|
7
|
-
Project-URL: Issues, https://git.bemade.org/bemade/odoo-dev/-/issues
|
|
8
|
-
License-Expression: LGPL-3.0
|
|
9
|
-
Requires-Python: >=3.12
|
|
10
|
-
Requires-Dist: pyyaml>=6.0
|
|
11
|
-
Requires-Dist: rich>=13.0.0
|
|
12
|
-
Requires-Dist: typer>=0.9.0
|
|
13
|
-
Description-Content-Type: text/markdown
|
|
14
|
-
|
|
15
|
-
# odoo-dev
|
|
16
|
-
|
|
17
|
-
> **This repository has moved to GitHub: https://github.com/bemade/odoo-dev**
|
|
18
|
-
>
|
|
19
|
-
> This GitLab repository is archived and no longer maintained.
|
odoo_dev-0.3.2/README.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
gitdir: ../../../.git/modules/tests/fixtures/odoo-empty
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|