Skip to main content

Do massive operations on Odoo Cloud

Project description

License: AGPL-3

Overview

Clodoo is a set of tools to manage to manage multiple Odoo installations with many DBs.

With clodoo you can do massive operations on 1 or more Odoo databases based on different Odoo versions. Main operation are:

  • create consistent database to run tests

  • repeat consistent action on many db with same or different Odoo version

  • repeat above actions on every new database

clodoo is also a PYPI package to simplify RPC connection to Odoo. The PYPI package is a hub to oerplib and odoorpc packages, so generic python client can execute any command to any Odoo version server (from 6.1 to 13.0)

odoorc: general purpose bash library

The bash file odoorc is a general purpose Odoo library. It supplies some Odoo values from odoo_vid or from odoo directory. Some values may depends by environment:

  • ODOO_DB_USER is the rule to return db username (def odoo%(MAJVER)s)

  • ODOO_GIT_HOSTNAME is the git hostname (def github.com)

  • ODOO_GIT_SHORT -> regex of git organizzations with vid short name (def /(oca)/, see odoo-vid)

Usage:

. odoorc RES=$(build_odoo_param PARAM odoo_vid [(search|DEBUG|default|tree|SERVER|<rptname>|<modname>)] [oca|zero|zero-http|zero-git|librerp|flectra] [(search|DEBUG|default|tree|SERVER)])

where:

PARAM is one of (ALL|BIN|CONFN|DB_USER|DDIR|FLOG|FPID|FULLVER|FULL_SVCNAME|GIT_BRANCH|GIT_OPTS|GIT_ORG|GIT_ORGNM|GIT_PROT|GIT_URL|HOME|INVALID_MODNAMES|INVALID_MODNAMES_RE|LICENSE|LCONFN|MAJVER|MANIFEST|OCB_SUBDIRS|OCB_SUBDIRS_RE|OPTS_ASM|PARENTDIR|PKGNAME|PKGPATH|REPOS|ROOT|RORIGIN|RPCPORT|RUPSTREAM|SVCNAME|UPSTREAM|URL|URL_BRANCH|USER|VCS|VDIR|VENV)

Features

Function

Note

Manage version depending names

transodoo.py

Odoo general purpose library

odoorc

Examples

example*.py

Getting started

Prerequisites

Zeroincombenze(R) tools requires:

  • Linux Centos 7/8 or Debian 9/10/11 or Ubuntu 16/18/20/22/24

  • python 2.7+, some tools require python 3.7+, best python 3.9+

  • bash 5.0+

Installation

Stable version via Python Package

pip install clodoo

Current version via Git

cd $HOME
[[ ! -d ./tools ]] && git clone https://github.com/zeroincombenze/tools.git
cd ./tools
./install_tools.sh -pUT
source $HOME/devel/activate_tools

Upgrade

Stable version via Python Package

pip install --upgrade clodoo

Current version via Git

cd ./tools
./install_tools.sh -pUT
source $HOME/devel/activate_tools

ChangeLog History

2.0.18 (2025-12-03)

  • [IMP] Odoo flags customer and supplier in res.partner

  • [QUA] Test coverage 17% (3472: 2876+596) [0 TestPoints] - quality rating 13 (target 100)

2.0.17 (2025-10-01)

  • [FIX] transodoo xref

  • [QUA] Test coverage 17% (3472: 2876+596) [0 TestPoints] - quality rating 13 (target 100)

2.0.16 (2025-09-22)

  • [FIX] Installation trouble

  • [QUA] Test coverage 17% (3472: 2876+596) [0 TestPoints] - quality rating 13 (target 100)

2.0.15 (2025-08-28)

  • [FIX] odoorc: integrated findpkg

  • [FIX] clodoo.py

  • [FIX] python 3.11

2.0.14 (2025-06-14)

  • [IMP] odoorc: new option NOLINK

  • [IMP] odoorc: Odoo 17.0 and 18.0

  • [IMP] powerp is not more a default gitorg

  • [FIX] License declaration compatible with pypi

2.0.13 (2024-08-22)

  • [IMP] Depends on z0lib>=2.0.11

2.0.12 (2024-07-03)

  • [FIX] Rpc with odoo < 10.0

  • [IMP] It does no more depends on os0

  • [IMP] Python 3.6 deprecated

2.0.11 (2024-03-31)

  • [IMP] Parameters review

  • [FIX] No file during pip install

  • [FIX] Call with context Odoo 10.0+

2.0.10 (2024-03-26)

  • [REF] Partial refactoring

2.0.9 (2024-02-02)

  • [IMP] odoorc improvements

2.0.8 (2023-11-16)

  • [FIX] Discard odoorpc 0.10 which does not work

2.0.7 (2023-09-26)

  • [FIX] Some fixes due old wrong code (id -> name)

2.0.6 (2023-07-10)

  • [IMP] Incorporated new pypi oerlib3

  • [IMP] Discriminate http_port and xmlrpc_port to avoid mistake

  • [IMP] New param IS_MULTI

2.0.5 (2023-05-08)

  • [FIX] clodoo.py: minor fixes

  • [IMP] odoorc: odoo version 16.0

2.0.4 (2023-03-29)

  • [IMP] odoorc: minor improvements

  • [IMP] odoorc: test for Odoo 16.0

  • [IMP] transodoo.py: minor improvements

2.0.3 (2022-12-09)

  • [FIX] odoorc: GIT_BRANCH sometimes fails

Credits

Authors

Contributors



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

clodoo-2.0.18.tar.gz (283.7 kB view details)

Uploaded Source

File details

Details for the file clodoo-2.0.18.tar.gz.

File metadata

  • Download URL: clodoo-2.0.18.tar.gz
  • Upload date:
  • Size: 283.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.11

File hashes

Hashes for clodoo-2.0.18.tar.gz
Algorithm Hash digest
SHA256 47a08b385a807873b7318791eb30c4e0c9f6ccb9f78c710ca9749aad0d262de1
MD5 0b0f3935364ab44d702e6fba4cb1d4ae
BLAKE2b-256 c9f6c53b404a96842d669e2c05593ea141c7827cf5314e46fee2e248e66d2937

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