Skip to content

lordkrandel/odev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

odev

Helps you develop Odoo.

setup

ocli setup

Sets up a folder with all the Odoo repos you need (making it a project folder).

image

workspace

ocli workspace <workspace_name>

Prints the content of the given workspace (default: current), and shows the list of available workspaces for the project.

image

workspaces

ocli workspaces

Shows the list of available workspaces for the project.

image

workspace-from-pr

ocli workspace-from-pr <pr_number>

Creates a full workspace from any Odoo PR.

image

load

ocli load <pr_number>

Checks out the branches from all repos that compose the workspace. You can only change workspace if there are no changes in your working copies.

image

projects, project

ocli projects
ocli project

Shows informations about all projects, and the detail about the current one.

Projects are folders containing your repos, their configuration is represented by a folder under $XDG_CONFIG, and in turn they contain folders, one for each workspace.

image

update

ocli update <workspace_name>

Loads a workspace, fetches all repositories, pulls them all, and reloads the old workspace back.

image

status

ocli status

Shows the git status for all repositories of the current workspace.

immagine

workspace --edit, rc --edit, hook edit

Edit the related file with git's configured editor (core.editor)

help

... and there are many more commands!

~/projects/odev $ ocli --help
                                                                                                                                                                                                                   
 Usage: ocli [OPTIONS] COMMAND [ARGS]...                                                                                                                                                                           
                                                                                                                                                                                                                   
╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --install-completion          Install completion for the current shell.                                             │
│ --show-completion             Show completion for the current shell, to copy it or customize the installation.      │
│ --help                        Show this message and exit.                                                           │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ──────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ activate-path       Path to the activate script for the current virtual environment.                                │
│ checkout            Git-checkouts multiple repositories.                                                            │
│ db-clear            Clear database by dropping and recreating it.                                                   │
│ db-dump             Dump the DB for the selected workspace.                                                         │
│ db-init             Initialize the database, with modules and hook.                                                 │
│ db-restore          Restore the DB for the selected workspace.                                                      │
│ deps                Find module dependancy order for a specific module.                                             │
│ diff                Git-diffs all repositories.                                                                     │
│ external-tests      Init db and run Odoo's external tests. This will install the demo data.                         │
│ fetch               Git-fetches multiple repositories.                                                              │
│ hook                Display or edit the post_hook python file.                                                      │
│ init-tests          Init db and run Odoo's at_install tests. This will install the demo data.                       │
│ l10n-tests          Run l10n tests                                                                                  │
│ lint                Start linting tests.                                                                            │
│ load                Load given workspace into the session.                                                          │
│ post-tests          Init db (if not fast) and run Odoo's post_install tests. This will install the demo data.       │
│ project             Display project data for the current folder.                                                    │
│ project-create      Create a project for the current directory                                                      │
│ project-delete      Delete a project.                                                                               │
│ projects            Display all the available project folders.                                                      │
│ pull                Git-pulls selected repos for current workspace.                                                 │
│ push                Git-pushes multiple repositories.                                                               │
│ rc                  View or edit the .odoorc config with default editor.                                            │
│ setup               Sets up the main folder, with repos and venv.                                                   │
│ setup-requisites    Setup a Python virtual environment for the project.                                             │
│ shell               Starts Odoo as an interactive shell.                                                            │
│ start               Start Odoo and reinitialize the workspace's modules.                                            │
│ status              Display status for all repos for current workspace.                                             │
│ test                Initialize db and run all tests, but the external ones.                                         │
│ update              Updates given workspace and reloads the current one.                                            │
│ upgrade             Run upgrade from a old Workspace to a new Workspace ex. ocli upgrade 15.0 15.0-account-myfix    │
│ workspace           Display currently selected workspace data.                                                      │
│ workspace-create    Create a new workspace from a series of selections.                                             │
│ workspace-delete    Delete a workspace.                                                                             │
│ workspace-dupe      Duplicate a workspace.                                                                          │
│ workspace-from-pr   Requires `gh` to be installed (Github CLI) Creates a                                            │
│                     workspace from a PR number on odoo/odoo or odoo/enterprise.                                     │
│                     If `load` is specified, it also loads generated workspace.                                      │
│ workspace-move      Renames a workspace.                                                                            │
│ workspace-set       Change the current workspace without loading it                                                 │
│ workspaces          Display all the available workspaces for current project.                                       │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

About

Helps you develop Odoo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages