Skip to main content

click-odoo scripts collection

Project description

License: LGPL-3 https://badge.fury.io/py/click-odoo-contrib.svg

click-odoo-contrib is a set of useful Odoo maintenance functions. They are available as CLI scripts (based on click-odoo), as well as composable python functions.

Scripts

click-odoo-initdb

Usage: click-odoo-initdb [OPTIONS]

  Create an Odoo database with pre-installed modules.

  Almost like standard Odoo does, except this manages a cache of database
  templates with the exact same addons installed. This is mostly intended to
  save time when running tests.

Options:
  -c, --config PATH         ...
  ...
  -n, --new-database TEXT   Name of new database to create, possibly from
                            cache. If absent, only the cache trimming
                            operation is executed.
  -m, --modules TEXT        Comma separated list of addons to install.
                            [default: base]
  --demo / --no-demo        Load Odoo demo data.  [default: True]
  --cache / --no-cache      Use a cache of database templates with the exact
                            same addons installed. Disabling this option also
                            disables all other cache-related operations such
                            as max-age or size.  [default: True]
  --cache-prefix TEXT       Prefix to use when naming cache template databases
                            (max 8 characters). CAUTION: all databases named
                            like {prefix}-____________-% will eventually be
                            dropped by the cache control mechanism, so choose
                            the prefix wisely.  [default: cache]
  --cache-max-age INTEGER   Drop cache templates that have not been used for
                            more than N days. Use -1 to disable.  [default: 30]
  --cache-max-size INTEGER  Keep N most recently used cache templates. Use -1
                            to disable. Use 0 to empty cache.  [default: 5]
  --help                    Show this message and exit.

click-odoo-uninstall

Usage: click-odoo-uninstall [OPTIONS]

Options:
  -c, --config PATH    ...
  -d, --database TEXT  ...
  ...
  -m, --modules TEXT   Comma-separated list of modules to uninstall
                       [required]
  --help               Show this message and exit.

click-odoo-upgrade

Usage: click-odoo-upgrade [OPTIONS]

Options:
  -c, --config PATH    ...
  -d, --database TEXT  ...
  ...
  --i18n-overwrite     Overwrite existing translations
  --upgrade-all        Force a complete upgrade (-u base)
  --help               Show this message and exit.

Credits

Contributors:

Maintainer

ACSONE SA/NV

This project is maintained by ACSONE SA/NV.

Changes

1.0.0 (2018-05-27)

  • add click-odoo-initdb

1.0.0b3 (2018-05-17)

  • be more robust in rare case button_upgrade fails silently

1.0.0b2 (2018-03-28)

  • uninstall: commit and hide –rollback

  • upgrade: refactor to add composable function

1.0.0b1 (2018-03-28)

  • upgrade: save installed checksums after full upgrade

1.0.0a1 (2018-03-22)

  • first alpha

  • click-odoo-uninstall

  • click-odoo-upgrade

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

click-odoo-contrib-1.0.0.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

click_odoo_contrib-1.0.0-py2.py3-none-any.whl (10.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file click-odoo-contrib-1.0.0.tar.gz.

File metadata

File hashes

Hashes for click-odoo-contrib-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6d9610fd239c1282e6e7fd75906c0a47a5696ad18946a2b896941bbab46314bb
MD5 131d801c47735260d3c39dc2322946ae
BLAKE2b-256 c183e51fba28b4f15ff42cf6ee871d2d3344fec336dcfa162306495906a89f47

See more details on using hashes here.

File details

Details for the file click_odoo_contrib-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for click_odoo_contrib-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8c7e65e18f2192431b90d4d259cf89ee2e91eed2fd0c89458eee3951e9cc5939
MD5 142c47861216accbdff19b81411451ee
BLAKE2b-256 e9c448f15ac2a0bc4b666637a7cc07536f626412c314ad618df1c37e5f577837

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