Small CLI tool for Odoo
Project description
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
Built Distribution
Hashes for odoo_tools_grap-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b7916602604779034b891a33a7353040b0052cb0ff726599ce453e5c335f514 |
|
MD5 | dfc439e992710170fea9890c01c169eb |
|
BLAKE2b-256 | 371f4a4ee5b9ed84db2466d62041323afc5cc49213da0e7d6bc7be0f547a5e6f |