xodoo
=====
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: 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).
.. code::
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).
Raw data
{
"_id": null,
"home_page": "http://github.com/oerp-odoo/xodoo",
"name": "xodoo",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "",
"keywords": "",
"author": "Andrius Laukavi\u010dius",
"author_email": "info@timefordev.com",
"download_url": "https://files.pythonhosted.org/packages/f8/c1/e2fd275f0f5066c02d521df243733e069dfb32004e12799d049d4626235b/xodoo-0.2.0.tar.gz",
"platform": null,
"description": "xodoo\n=====\n\n.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg\n :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html\n :alt: License: LGPL-3\n\n``xodoo`` is collection of various scripts intended to be used for odoo.\nIt is based on ``click-odoo`` to connect and manage odoo.\n\nScripts\n~~~~~~~\n\nxodoo-migrate\n-------------\n\nMigration tool intended to run various migration scripts for Odoo. It should\nbe used when it does not make sense to run module migrations (e.g. need\nto generate some customer specific data that is not directly related with any\nmodule).\n\n.. code::\n\n Usage: xodoo-migrate [OPTIONS] PATH\n\n PATH: migration file or directory of migration files.\n\n Migration file must end with .py extension and must have 'migrate' function\n that expects 'env' and 'shared_data' argument.\n\n 'shared_data' argument is a dictionary that collects previous\n migration scripts returned values (key is migration script name).\n If return (of 'migrate' function) is None, it is not included in\n shared_data.\n\n Options:\n -c, --config FILE Specify the Odoo configuration file. Other ways\n to provide it are with the ODOO_RC or\n OPENERP_SERVER environment variables, or\n ~/.odoorc (Odoo >= 10) or ~/.openerp_serverrc.\n -d, --database TEXT Specify the database name. If present, this\n parameter takes precedence over the database\n provided in the Odoo configuration file.\n --log-level TEXT Specify the logging level. Accepted values depend\n on the Odoo version, and include debug, info,\n warn, error. [default: warn]\n --logfile FILE Specify the log file.\n --rollback Rollback the transaction even if the script does\n not raise an exception. Note that if the script\n itself commits, this option has no effect. This\n is why it is not named dry run. This option is\n implied when an interactive console is started.\n -f, --force TEXT Specify migration file names (without extension)\n to force migrate. It will migrate even if it was\n already migrated. Must be subset of migration\n files provided in a path.\n -s, --sort-algorithm TEXT Sort algorithm to sort migration files before\n migration. Possible choices: sorted, natsorted\n --help Show this message and exit.\n\nIf you use ``--rollback`` option, make sure you do not run ``cr.commit()`` in\nyour scripts, otherwise it will have no effect (script changes are automatically\ncommitted if they do not fail at the end of transaction).\n",
"bugtrack_url": null,
"license": "LGPLv3+",
"summary": "Odoo CLI Tools",
"version": "0.2.0",
"project_urls": {
"Homepage": "http://github.com/oerp-odoo/xodoo"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b2202684d3fd6dd0910a5da4f0ae33e19ced4c429282bd5ad0c660d679192e41",
"md5": "d8bb9b0efdc056bc7765c00ad5b928db",
"sha256": "82be8306eb6c53120049079806b0595c2b8c1d638e69d0f0c9230eb12f7551cb"
},
"downloads": -1,
"filename": "xodoo-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d8bb9b0efdc056bc7765c00ad5b928db",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 7768,
"upload_time": "2023-09-27T05:17:04",
"upload_time_iso_8601": "2023-09-27T05:17:04.939767Z",
"url": "https://files.pythonhosted.org/packages/b2/20/2684d3fd6dd0910a5da4f0ae33e19ced4c429282bd5ad0c660d679192e41/xodoo-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f8c1e2fd275f0f5066c02d521df243733e069dfb32004e12799d049d4626235b",
"md5": "9fd90bf79df76393f6521e6ab5e5d236",
"sha256": "7f50b28d4a3f7d338a70baf70b9d9d36477e5936b3637288172c44c7c866e9a7"
},
"downloads": -1,
"filename": "xodoo-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "9fd90bf79df76393f6521e6ab5e5d236",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 52657,
"upload_time": "2023-09-27T05:17:06",
"upload_time_iso_8601": "2023-09-27T05:17:06.422390Z",
"url": "https://files.pythonhosted.org/packages/f8/c1/e2fd275f0f5066c02d521df243733e069dfb32004e12799d049d4626235b/xodoo-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-27 05:17:06",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "oerp-odoo",
"github_project": "xodoo",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "xodoo"
}