Metadata-Version: 2.1
Name: dodoo-initializer
Version: 0.6.0
Summary: dodoo initializer script
Home-page: http://github.com/xoe-labs/dodoo-initializer
Author: XOE Labs
Author-email: info@xoe.solutions
License: LGPLv3+
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Framework :: Odoo
Requires-Dist: dodoo (>=2.0.0.rc7)

dodoo-initializer
=================

.. 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
.. image:: https://badge.fury.io/py/dodoo-initializer.svg
    :target: http://badge.fury.io/py/dodoo-initializer

``dodoo-initializer`` is a set of useful Odoo maintenance functions.
They are available as CLI scripts (based on dodoo_), as well
as composable python functions.

.. contents::

Script
~~~~~~
.. code:: bash

  Usage: dodoo-initializer [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:
    -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]
    -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.
    --log-level TEXT          Specify the logging level. Accepted values depend
                              on the Odoo version, and include debug, info,
                              warn, error.  [default: info]
    --logfile FILE            Specify the log file.
    --help                    Show this message and exit.


Useful links
~~~~~~~~~~~~

- pypi page: https://pypi.org/project/dodoo-initializer
- code repository: https://github.com/xoe-labs/dodoo-initializer
- report issues at: https://github.com/xoe-labs/dodoo-initializer/issues

.. _dodoo: https://pypi.python.org/pypi/dodoo

Credits
~~~~~~~

Contributors:

- Stéphane Bidoul (ACSONE_)
- Thomas Binsfeld (ACSONE_)
- Benjamin Willig (ACSONE_)
- David Arnold (XOE_)

.. _ACSONE: https://acsone.eu
.. _XOE: https://xoe.solutions

Maintainer
~~~~~~~~~~

.. image:: https://www.acsone.eu/logo.png
   :alt: ACSONE SA/NV
   :target: https://www.acsone.eu

.. image:: https://erp.xoe.solutions/logo.png
   :alt: XOE Corp. SAS
   :target: https://xoe.solutions

This project is co-maintained by ACSONE SA/NV and XOE Copr. SAS.

Changes
~~~~~~~

.. Future (?)
.. ----------
.. -

0.6.0 (2019-01-24)
------------------
- Refactor to dodoo plugin

0.5.2 (2019-01-22)
------------------
- Do not limit db regex: quoted identifiers have no limiting spec.

0.5.1 (2018-12-05)
------------------
- Add addons-path option

0.5.0 (2018-11-04)
--------------------
- First dodoo release


