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.2.tar.gz (8.1 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.2-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file odooquickrun-1.0.2.tar.gz.

File metadata

  • Download URL: odooquickrun-1.0.2.tar.gz
  • Upload date:
  • Size: 8.1 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.2.tar.gz
Algorithm Hash digest
SHA256 e39b1ff6ba96271078e11809b6e4adf6119fb55c9506c6d91fcfbe3656d28f66
MD5 200e8947c95c87bb7cc02fc6d92be374
BLAKE2b-256 6f8e702f261d62904c38f8652f98deeb05f3a55c80f31b48d9b6e7a7ce60f1f9

See more details on using hashes here.

File details

Details for the file odooquickrun-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: odooquickrun-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 28d5847aaaf862dc2d830315e8ff835d6da502df8ee853ceb5bc6208f5e3dfcc
MD5 0b613a2ee6f04a76d6670bb3a0fcdaea
BLAKE2b-256 4d1a6cd4ecf7f06683897d9db6a04a17791356fe19b49dec7018b5ee498fc9b1

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