Skip to main content

Small CLI tool for Odoo

Project description

Gitlab CI codecov License: AGPL v3

PyPI - Python Version PyPI - Downloads GitLab last commit GitLab stars

odoo-tools-grap

This tools provide extra cli commands to simplify recurring operations for Odoo developers.

  • To develop and contribute to the library, refer to the DEVELOP.md file.
  • Refer to the ROADMAP.md file to see the current limitation, bugs, and task to do.
  • See authors in the CONTRIBUTORS.md file.

Table of Contents

Installation

The library is available on PyPI.

To install it simply run :

pipx install odoo-tools-grap

(See alternative installation in DEVELOP.md file.)

    pipx install

Usage

Command: diff (View repositories status)

Based on a repos config file (repos.yml file, used by gitaggregate by exemple), this script will display the result of the git diff for each repository.

    odoo-tools-grap diff --config repos.yml

Result Sample

2024-03-27 16:37:24.725 | WARNING  | odoo_tools_grap.cli.cli_diff:diff:31 - [BAD BRANCH] ./src/OCA/product-attribute is on 16.0-product_pricelist_simulation-various-fixes.(Should be on 16.0-current)
2024-03-27 16:37:25.395 | WARNING  | odoo_tools_grap.cli.cli_diff:diff:38 - [LOCAL CHANGES] ./src/OCA/sale-workflow has 1 local changes.
2024-03-27 16:37:25.444 | WARNING  | odoo_tools_grap.cli.cli_diff:diff:43 - [UNTRACKED] ./src/OCA/sale-workflow has 2 untracked files.

Command: generate (Generate Odoo config File)

Base on a repos config file, (repos.yml file, used by gitaggregate by exemple), and template(s) of odoo config file, this script will generate a complete config file for Odoo with addons_path depending on the repos config file.


    odoo-tools-grap generate\
        --config repos.yml\
        --input-files ./template.config.cfg\
        --output-file ./odoo.cfg

Command: create-branch (Create new Orphan Branch)

TODO.

Command: migrate (Migrate module from a version to another)

Prerequites

To understand this tool, you need to know the following tools:

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

odoo_tools_grap-1.1.0.tar.gz (8.7 kB view hashes)

Uploaded Source

Built Distribution

odoo_tools_grap-1.1.0-py3-none-any.whl (10.4 kB view hashes)

Uploaded Python 3

Supported by

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