Runner tool to run Odoo project using pew virtualenvs
Project description
odooquickrun
A simple command-line tool to manage Odoo projects using a pew-managed virtual environment.
๐ฆ Installation
Install directly from GitHub or your local source:
pip install odooquickrun
โ Uninstallation
To remove the tool:
pip uninstall odooquickrun
๐ Usage
Prerequisite: Ensure you have created and activated the pew virtual environment for your project before running these commands.
๐ฅ๏ธ Odoo Server Operations
Start Odoo
odooquickrun start
Start in Debug Mode
Running with debugpy on port 5678.
odooquickrun debug
Upgrade Modules Update specific modules in a database.
odooquickrun upgrade -d <db_name> -m <module1,module2,...>
-d: Database name.-m: Comma-separated list of modules to upgrade.
๐๏ธ Database Operations
You can manage your local PostgreSQL databases directly using the db command.
Note: The default database port is
5432. You can specify a custom port for any of the commands below using the--db-port <port>option.
1. Database Management
List all databases (shows owner and size)
odooquickrun db info
Drop databases Delete one or multiple databases.
odooquickrun db drop <db1,db2,...> [options]
<db1,db2,...>: Comma-separated list of database names (e.g.,test_db,demo_db).-f/--force: Skip confirmation prompt (useful for automation).
2. User (Role) Management
List all users (shows superuser & createdb status)
odooquickrun db list_users
Create a new user
Creates a user with CREATEDB permission (required for Odoo to create its own databases).
odooquickrun db create_user <username> <password>
Drop a user Permanently delete a postgres user/role.
odooquickrun db drop_user <username> [-f]
๐ Project Structure
This CLI is designed to be used inside a pew-managed virtualenv containing an Odoo project, structured as follows:
<project_root>/
โ
โโโ odoo/ # Odoo core (source code)
โ
โโโ addons/
โ โโโ custom_3rd_party_addons_1/ # 3rd party modules (OCA, ...)
โ โ โโโ module_a/
โ โ โโโ module_b/
โ โโโ custom_3rd_party_addons_2/
โ โ โโโ module_c/
โ โ โโโ module_d/
โ ...
โ
โโโ project/ # Customized modules for project
โ โโโ project_module_1/
โ โโโ project_module_2/
โ โโโ project_module_3/
โ
โโโ config/
โโโ local.conf (or dev.conf)
Notes:
- You don't need to specify the
addons_pathin the.conffile; the script will automatically calculate and prepare it for you based on the folder structure above.
๐ Requirements
- Python 3.7+
pewfor managing virtual environmentsodoo-binavailable in your Odoo project path- PostgreSQL client tools (
psql) installed and added to PATH
๐ค Author
Phรบc Trแบงn Thanh (Felix)
- ๐ง Email: phuctran.fx.vn@gmail.com
- ๐ Github: @phuctranfxvn
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odooquickrun-1.0.3.tar.gz.
File metadata
- Download URL: odooquickrun-1.0.3.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
004959e609114ac0a76945e8732f6d3a792dec3c17cabefe8fe43ede0aeabf21
|
|
| MD5 |
334dbf5ff737aebb8d7779c5b16ba9de
|
|
| BLAKE2b-256 |
b5072ccdbd0024076cc921047f30e2e899b8ca075d4aa0e173ff262dc6b88ac0
|
File details
Details for the file odooquickrun-1.0.3-py3-none-any.whl.
File metadata
- Download URL: odooquickrun-1.0.3-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2bed0c27ca7f7a48e3e474fe8fdadd72adb168cfb81a346aa7f92749fc175e6
|
|
| MD5 |
466c5e4149f1dc8aad1a0035fd1a9f52
|
|
| BLAKE2b-256 |
b7afbd473ec008d8731368c04091aaac1122ae7791e4c5a51ac8ede300c8f726
|