Skip to main content

Odoo CLI Tools

Project description

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' argument.

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).

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

xodoo-0.1.0.tar.gz (51.8 kB view details)

Uploaded Source

Built Distribution

xodoo-0.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file xodoo-0.1.0.tar.gz.

File metadata

  • Download URL: xodoo-0.1.0.tar.gz
  • Upload date:
  • Size: 51.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for xodoo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2dc9b14c035065dfb0c08df1c0ec56af2b67fd2b99a08caee71377a0844a619c
MD5 0eafda6e4fbc8c7334e75bf01176df1c
BLAKE2b-256 5f17f13761037f651002a3718daf7be56a18b281d94625fb4ee1e209a444773b

See more details on using hashes here.

File details

Details for the file xodoo-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: xodoo-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for xodoo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cda4bcefe550711ca856a573ed99fdebc2c2a105b93ac8dd328b62503e14c1ca
MD5 156d1d98ff990fac0054edac2f42c49b
BLAKE2b-256 1886806206fb30ede315da9e03f0eb02301b9a5371983f3bb3861be248db81f6

See more details on using hashes here.

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