Skip to main content

xodoo

License: LGPL-3

xodoo is collection of various scripts intended to be used for odoo. It is based on click-odoo to connect and manage odoo.

Scripts

xodoo-migrate

Migration tool intended to run various migration scripts for Odoo. It should be used when it does not make sense to run module migrations (e.g. need to generate some customer specific data that is not directly related with any module).

Usage: xodoo-migrate [OPTIONS] PATH

  PATH:  migration file or directory of migration files.

  Migration file must end with .py extension and must have 'migrate' function
  that expects 'env' and 'shared_data' argument.

  'shared_data' argument is a dictionary that collects previous
  migration scripts returned values (key is migration script name).
  If return (of 'migrate' function) is None, it is not included in
  shared_data.

Options:
  -c, --config FILE          Specify the Odoo configuration file. Other ways
                             to provide it are with the ODOO_RC or
                             OPENERP_SERVER environment variables, or
                             ~/.odoorc (Odoo >= 10) or ~/.openerp_serverrc.
  -d, --database TEXT        Specify the database name. If present, this
                             parameter takes precedence over the database
                             provided in the Odoo configuration file.
  --log-level TEXT           Specify the logging level. Accepted values depend
                             on the Odoo version, and include debug, info,
                             warn, error.  [default: warn]
  --logfile FILE             Specify the log file.
  --rollback                 Rollback the transaction even if the script does
                             not raise an exception. Note that if the script
                             itself commits, this option has no effect. This
                             is why it is not named dry run. This option is
                             implied when an interactive console is started.
  -f, --force TEXT           Specify migration file names (without extension)
                             to force migrate. It will migrate even if it was
                             already migrated. Must be subset of migration
                             files provided in a path.
  -s, --sort-algorithm TEXT  Sort algorithm to sort migration files before
                             migration. Possible choices: sorted, natsorted
  --help                     Show this message and exit.

If you use --rollback option, make sure you do not run cr.commit() in your scripts, otherwise it will have no effect (script changes are automatically committed if they do not fail at the end of transaction).

Metadata

Release files for xodoo 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xodoo 0.2.0
File Size Uploaded
xodoo-0.2.0.tar.gz 52.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xodoo 0.2.0
File Interpreter ABI Platform
xodoo-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 60.4 kB

Release files / xodoo-0.2.0.tar.gz

Download URL xodoo-0.2.0.tar.gz
Size 52.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7f50b28d4a3f7d338a70baf70b9d9d36477e5936b3637288172c44c7c866e9a7
BLAKE2b-256 checksum
How to use checksums
f8c1e2fd275f0f5066c02d521df243733e069dfb32004e12799d049d4626235b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / xodoo-0.2.0-py3-none-any.whl

Download URL xodoo-0.2.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82be8306eb6c53120049079806b0595c2b8c1d638e69d0f0c9230eb12f7551cb
BLAKE2b-256 checksum
How to use checksums
b2202684d3fd6dd0910a5da4f0ae33e19ced4c429282bd5ad0c660d679192e41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page