Skip to main content

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_path in the .conf file; the script will automatically calculate and prepare it for you based on the folder structure above.

๐Ÿ›  Requirements

  • Python 3.7+
  • pew for managing virtual environments
  • odoo-bin available in your Odoo project path
  • PostgreSQL client tools (psql) installed and added to PATH

๐Ÿ‘ค Author

Phรบc Trแบงn Thanh (Felix)

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

odooquickrun-1.0.3.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

odooquickrun-1.0.3-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

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

Hashes for odooquickrun-1.0.3.tar.gz
Algorithm Hash digest
SHA256 004959e609114ac0a76945e8732f6d3a792dec3c17cabefe8fe43ede0aeabf21
MD5 334dbf5ff737aebb8d7779c5b16ba9de
BLAKE2b-256 b5072ccdbd0024076cc921047f30e2e899b8ca075d4aa0e173ff262dc6b88ac0

See more details on using hashes here.

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

Hashes for odooquickrun-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a2bed0c27ca7f7a48e3e474fe8fdadd72adb168cfb81a346aa7f92749fc175e6
MD5 466c5e4149f1dc8aad1a0035fd1a9f52
BLAKE2b-256 b7afbd473ec008d8731368c04091aaac1122ae7791e4c5a51ac8ede300c8f726

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page