click-odoo scripts collection
Project description
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 (beta)
Usage: click-odoo-initdb [OPTIONS]
Create an Odoo database with pre-installed modules.
Almost like standard Odoo does with the -i option, except this script
manages a cache of database templates with the exact same addons
installed. This is particularly useful to save time when initializing test
databases.
Cached templates are identified by computing a sha1 checksum of modules
provided with the -m option, including their dependencies and
corresponding auto_install modules.
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. Note: when the cache is
enabled, all attachments created during database
initialization are stored in database instead of
the default Odoo file store. [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 (stable)
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 (stable)
Usage: click-odoo-upgrade [OPTIONS]
Upgrade an Odoo database (odoo -u), taking advantage of
module_auto_update's upgrade_changed_checksum method if present.
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.
Useful links
pypi page: https://pypi-hypernode.com/project/click-odoo-contrib
code repository: https://github.com/acsone/click-odoo-contrib
report issues at: https://github.com/acsone/click-odoo-contrib/issues
Credits
Contributors:
Maintainer
This project is maintained by ACSONE SA/NV.
Changes
1.0.2 (2018-05-29)
fix: initdb now stores attachments in database when cache is enabled, so databases created from cache do not miss the filestore
1.0.1 (2018-05-27)
better documentation
fix: initdb now takes auto_install modules into account
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file click-odoo-contrib-1.0.2.tar.gz
.
File metadata
- Download URL: click-odoo-contrib-1.0.2.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa066fb79c291a7dd5c4a1c33acacf980b222a13a45d59308afef6d9a461256b |
|
MD5 | 8048d53b8df1d5929d7e3752950d79f7 |
|
BLAKE2b-256 | 3894a492325d16d38bad552d9e3ffbe298cb2117fd510efd78d83dd4d813d510 |
File details
Details for the file click_odoo_contrib-1.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: click_odoo_contrib-1.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea91546a8fbd917dcaff4b365d8d3ffa29825cab03127472de622bd2402014a2 |
|
MD5 | 07d1f7c21d5f77f3ff5164d292c4568d |
|
BLAKE2b-256 | 2148d1dd697e3baa362d01924c9ec5bb3f3ff799cf04874ef0bb1da6b0a578e3 |