odoo-configurator


Nameodoo-configurator JSON
Version 3.4.7 PyPI version JSON
download
home_pageNone
SummaryConfigure and update Odoo database with YAML files
upload_time2024-05-02 08:25:48
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseGNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.
keywords odoo configurator xmlprc yaml
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            odoo-configurator
=================

Odoo Configurator simplifies and automates the configuration of Odoo using YAML files. 
It allows you to update the database, install/update/uninstall modules, configure settings, 
manage users, and perform various data manipulation operations. 
It is an essential tool for Odoo administrators looking to streamline their configuration workflow.

## Installation

    pip install odoo-configurator

## Usage

    odoo-configurator ./work_dir/project_name.local.yml

To run a configuration from the source code:

    /odoo-configurator/start_config.py ./work_dir/project_name.local.yml

Provided file must contain the auth/odoo section to set connexion parameters.

#### project_name.local.yml

```yml
    name: project_name local

    inherits:
        - ../work_dir/project_name/project_name.yml

    auth:
        odoo:
            url: http://project_name.localhost
            dbname: project_name
            username: admin
            password: admin123
```

## Inherits

Inherits param provide a list of configuration files witch content is merged before execution.

```yml
    inherits:
        - ../work_dir/project_name/sales.yml
        - ../work_dir/project_name/account.yml
 ```

## Script Files

Script Files param provide a list of configuration files witch content will be executed sequentially.

```yml
    script_files:
        - ../work_dir/project_name/script1.yml
        - ../work_dir/project_name/script2.yml
```

## Parameters

**Install Mode**: To import datas with the value **on_install_only: True** add the "--install" parameter in command
line:

    ./start_config.py ./clients/name/name.local.yml --install

## Environment variables

Some parameters can be provided by environment variable.

Use ODOO_URL, ODOO_DB, ODOO_USER and ODOO_PASSWORD instead of using auth/odoo params in config file

Use KEEPASS_PASSWORD instead of --keepass command line parameter

## Pre Update

To prepare a configuration or add a fix use "pre_update", the given scripts will be executed before the normal configuration.

```yml
    pre_update:
        - ../exemple/exemple.pre_update_script.yml
```

## Modules

To install modules use "modules"
```yml
    base:
      modules:
        - example_module
```

To update modules use "updates"
```yml
    base:
      updates:
        - example_module
```

To uninstall modules use "uninstall_modules"
```yml
    base:
      uninstall_modules:
        - example_module
```

## Set config parameters (Settings)

to set the value of a setting (res.config.settings)
```yml
    settings:
      config:
        group_use_lead: True
```

For a specific company configuration use the `company_id` parameter:
```yml
    settings main_company:
      config:
        company_id: get_ref("base.main_company")
        chart_template_id: get_ref("l10n_fr.l10n_fr_pcg_chart_template")
        context: { 'lang': 'fr_FR' }
```

A context can be passed to the config command.

## Set system parameters

to set the value of a system parameter (ir.config_parameter)
```yml
Company System Parameters:
  system_parameter:
    Mail Default From Filter:
      key: mail.default.from_filter
      value: my-company.com
  ```


## Create or update records
    
If the record with the xml id provided with force_id don't exist, the record will be created.    

```yml
    Records to create:
        datas:
            My record 1:
                model: res.partner
                force_id: external_config.partner_1
                values:
                    name: Partner 1
                    ref: PARTNER1
            My record 2:
                model: res.user
                force_id: base.user_admin
                values:
                    name: Admin User
```

## Load records

Using load parameter will speed up creation and update of record compared to single record update.

```yml
    Records to load:
        load: True
        model: res.partner
        datas:
            My record 1:
                force_id: external_config.record1
                values:
                    name: Record 1
                    ref: REC1
            My record 2:
                force_id: external_config.record2
                values:
                    name: Record 2
                    ref: REC2
```

## Update records with a domain

To update values of multiple records, set a domain with "update_domain" :
```yml
    Update Example:
      model: res.partner
      update_domain: "[('email','=','example@test.com')]"
      values:
        name: Example
```

## Available functions

All functions in OdooConnection starting by `get_` are callable from yml files.
 - get_ref
 - get_image_url
 - get_image_local
 - get_local_file
 - get_country
 - get_menu
 - get_search_id
 - get_xml_id_from_id
 - get_record

These functions can be nested by using the o object:

```yml
Ir model Data Config:
  datas:
    Add employee document xmlid:
      model: ir.model.data
      force_id: template_01_employee_01
      values:
        model: paper.paper
        module: external_config
        name: template_01_employee_01
        res_id: get_search_id('paper.paper', [
                ('template_id', '=', o.get_ref('external_config.template_01')),
                ('res_id', '=', o.get_ref('external_config.employee_01'))
                ], 'desc')
```

## Server Actions and Functions

To call a model function:
```yml
    001 Call Function:
      datas:
        Call Function:
          function: example_function
          model: res.parnter
          res_id: get_ref("base.partner_demo")
          params: ['param1', param2]
          kw: {'extra_param1': get_ref('external_config.extra_param1')}  
```

To call an action server (`ir.actions.server`):
```yml
    002 Call Action Server:
      datas:
        Call Action Server:
          action_server_id: get_ref("custom_module.action_exemple")
          model: res.parnter
          res_id: get_ref("base.partner_demo")
```

## Users

To set groups on a user you can remove previous groups with "unlink all":
```yml
    users:
        datas:
            User Example:
                model: res.users
                force_id: base.user_example
                values:
                    name: Example
                    login: example@test.com
                groups_id:
                    - unlink all
                    - base.group_portal
```
                    
## Other data tools

- delete_all
- delete_domain
- delete_id
- deactivate
- activate
- update_domain
  - search_value_xml_id
      - this option allows to pass an id from xml_id to a domain
      - Can be used with update_domain, activate, deactivate:
  
        ```yml        
                      Deactivate Partner Title doctor:
                          model: res.partner.title
                          search_value_xml_id: base.res_partner_title_doctor
                          deactivate: "[('id', '=', search_value_xml_id)]"
        ```

## Translations

To set the translation of a translatable field, use the **languages** option.
Example:
```yml
    Mail Templates:
        datas:
            Notification:
                model: mail.template
                force_id: mail.notification_template
                languages:
                    - fr_FR
                    - en_US
                values:
                    body_html: |
                        <table>
                            <tbody>
                            Text for french and english
                            </tbody>
                        </table>
```

## Mattermost Notification

To set a Mattermost url and channel where to send notifications:
```yml
    mattermost_channel: my-channel
    mattermost_url: https://mattermost.xxx.com/hooks/dfh654fgh
```

To avoid Mattermost notification, add in main yaml file:
```yml
    no_notification: True
```

## Keepass

Keepass is a tool to store and protect passwords.

Available functions to use stored values in Keepass:
```yml
    password: get_keepass_password('path/passwords.kdbx', 'Folder Name', 'Key Name')
    user: get_keepass_user('path/passwords.kdbx', 'Folder Name', 'Key Name')
    url: get_keepass_url('path/passwords.kdbx', 'Folder Name', 'Key Name')
```

To avoid to repeat path and group in Keepass functions, you can set `keepass_path` and `keepass_group`
```yml
keepass_path: path/passwords.kdbx
keepass_group: Folder Name

my_secret: get_keepass_password('Key Name')
```

3 ways to pass the Keepass password to odoo-configurator :
 - Provide Keepass password with the keepass parameter in command line: `--keepass='mdp***'`
 - Set the `KEEPASS_PASSWORD` environment variable
 - Manually. If it's required odoo-configurator will ask to type the password with the prompt `Keepass Password:`

 In PyCharm, to type the Keepass password, please check the `Emulate terminal in output console` option in your run/debug configuration.

## Bitwarden

Bitwarden is a tool to store and protect passwords. Make sure Bitwarden CLI is installed.

Credentials to connect to Bitwarden Vault can be set by environment variables, please report to the [s6r-bitwarden-cli documentation](https://pypi.org/project/s6r-bitwarden-cli)

An over option is to set the value of `bitwarden_username` and  `bitwarden_password` in yml file. Obviously, do not save password directly in your yml file, use Keepass functions for example.

```yml
bitwarden_username: get_keepass_user('Bitwarden')
bitwarden_password: get_keepass_password('Bitwarden')
```

## Standard CSV Import

Columns in the CSV file must be the technical name of the field.
A column "id" is required to allow update of datas. 

In yml file:

```yml
    import_data:
        import_csv Product Template:
            on_install_only: True
            model: product.template
            name_create_enabled_fields: uom_id,uom_po_id,subscription_template_id
            file_path: ../datas/todoo/product.template.csv
            specific_import: base/import_specific.py
            specific_method: import_partner
            batch_size: 200
            skip_line: 1420
            limit: 100
            context: {'install_mode': True}
```

### Required fields:

  - model
  - file_path

### Optional fields:

  - **name_create_enabled_fields** : List of the fields which are allowed to "Create the record if it doesn't exist"
  - **on_install_only** : Do the csv export only in **Install Mode**
  - **context** : Provide a specific context for imports
  - **specific_import** : Path to a specific Python file
  - **specific_method** : Import method to use form the file **specific_import**
  - **batch_size** : Number of records by load batch
  - **limit** : Maximum number of record to import
  - **skip_line** : index of the record to start with


## Generate YML data file from a model

This configuration will generate a res_partner.yml file in the **config** directory
```yml
Actions:
    import_configurator_model_file:
        Portal Form:
            model: res.partner
            domain: [['is_company', '=', True]]  # Don't use parenthesis in the domain
            order_by: name, ref
            force_export_fields: ["email_formatted", "country_code"]
            excluded_fields: ["email", "country_id"]
```

## Release Configuration

Some configurations need to be executed on every platform until the production release. After that we need to archive these configuration files.
We will store the files in the directory *release_config* for example.
To run all these files, add the **release_directory** parameter in your main configuration file:

```yml
    release_directory: ./release_config
```

To back up the release files after the execution of the production configuration, add the **clear_release_directory** parameter in you production configuration file.

```yml
  clear_release_directory: True
```

## Contributors

* David Halgand
* Michel Perrocheau - [Github](https://github.com/myrrkel)


## Maintainer

This software was created by [Hodei](https://www.hodei.net) formerly Teclib' ERP, 
maintenance is now being handled by [Scalizer](https://www.scalizer.fr).


<div style="text-align: center;">

[![Scaliser](./logo_scalizer.png)](https://www.scalizer.fr)

[![Hooei](./logo_hodei.jpg)](https://www.hodei.net)

</div>

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "odoo-configurator",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "odoo, configurator, xmlprc, yaml",
    "author": null,
    "author_email": "Michel Perrocheau <myrrkel@gmail.com>, David Halgand <david@scalizer.fr>",
    "download_url": "https://files.pythonhosted.org/packages/90/37/c18813d566ac00acec113760b01a359ca0f3324781f0181e77e94887753f/odoo_configurator-3.4.7.tar.gz",
    "platform": null,
    "description": "odoo-configurator\n=================\n\nOdoo Configurator simplifies and automates the configuration of Odoo using YAML files. \nIt allows you to update the database, install/update/uninstall modules, configure settings, \nmanage users, and perform various data manipulation operations. \nIt is an essential tool for Odoo administrators looking to streamline their configuration workflow.\n\n## Installation\n\n    pip install odoo-configurator\n\n## Usage\n\n    odoo-configurator ./work_dir/project_name.local.yml\n\nTo run a configuration from the source code:\n\n    /odoo-configurator/start_config.py ./work_dir/project_name.local.yml\n\nProvided file must contain the auth/odoo section to set connexion parameters.\n\n#### project_name.local.yml\n\n```yml\n    name: project_name local\n\n    inherits:\n        - ../work_dir/project_name/project_name.yml\n\n    auth:\n        odoo:\n            url: http://project_name.localhost\n            dbname: project_name\n            username: admin\n            password: admin123\n```\n\n## Inherits\n\nInherits param provide a list of configuration files witch content is merged before execution.\n\n```yml\n    inherits:\n        - ../work_dir/project_name/sales.yml\n        - ../work_dir/project_name/account.yml\n ```\n\n## Script Files\n\nScript Files param provide a list of configuration files witch content will be executed sequentially.\n\n```yml\n    script_files:\n        - ../work_dir/project_name/script1.yml\n        - ../work_dir/project_name/script2.yml\n```\n\n## Parameters\n\n**Install Mode**: To import datas with the value **on_install_only: True** add the \"--install\" parameter in command\nline:\n\n    ./start_config.py ./clients/name/name.local.yml --install\n\n## Environment variables\n\nSome parameters can be provided by environment variable.\n\nUse ODOO_URL, ODOO_DB, ODOO_USER and ODOO_PASSWORD instead of using auth/odoo params in config file\n\nUse KEEPASS_PASSWORD instead of --keepass command line parameter\n\n## Pre Update\n\nTo prepare a configuration or add a fix use \"pre_update\", the given scripts will be executed before the normal configuration.\n\n```yml\n    pre_update:\n        - ../exemple/exemple.pre_update_script.yml\n```\n\n## Modules\n\nTo install modules use \"modules\"\n```yml\n    base:\n      modules:\n        - example_module\n```\n\nTo update modules use \"updates\"\n```yml\n    base:\n      updates:\n        - example_module\n```\n\nTo uninstall modules use \"uninstall_modules\"\n```yml\n    base:\n      uninstall_modules:\n        - example_module\n```\n\n## Set config parameters (Settings)\n\nto set the value of a setting (res.config.settings)\n```yml\n    settings:\n      config:\n        group_use_lead: True\n```\n\nFor a specific company configuration use the `company_id` parameter:\n```yml\n    settings main_company:\n      config:\n        company_id: get_ref(\"base.main_company\")\n        chart_template_id: get_ref(\"l10n_fr.l10n_fr_pcg_chart_template\")\n        context: { 'lang': 'fr_FR' }\n```\n\nA context can be passed to the config command.\n\n## Set system parameters\n\nto set the value of a system parameter (ir.config_parameter)\n```yml\nCompany System Parameters:\n  system_parameter:\n    Mail Default From Filter:\n      key: mail.default.from_filter\n      value: my-company.com\n  ```\n\n\n## Create or update records\n    \nIf the record with the xml id provided with force_id don't exist, the record will be created.    \n\n```yml\n    Records to create:\n        datas:\n            My record 1:\n                model: res.partner\n                force_id: external_config.partner_1\n                values:\n                    name: Partner 1\n                    ref: PARTNER1\n            My record 2:\n                model: res.user\n                force_id: base.user_admin\n                values:\n                    name: Admin User\n```\n\n## Load records\n\nUsing load parameter will speed up creation and update of record compared to single record update.\n\n```yml\n    Records to load:\n        load: True\n        model: res.partner\n        datas:\n            My record 1:\n                force_id: external_config.record1\n                values:\n                    name: Record 1\n                    ref: REC1\n            My record 2:\n                force_id: external_config.record2\n                values:\n                    name: Record 2\n                    ref: REC2\n```\n\n## Update records with a domain\n\nTo update values of multiple records, set a domain with \"update_domain\" :\n```yml\n    Update Example:\n      model: res.partner\n      update_domain: \"[('email','=','example@test.com')]\"\n      values:\n        name: Example\n```\n\n## Available functions\n\nAll functions in OdooConnection starting by `get_` are callable from yml files.\n - get_ref\n - get_image_url\n - get_image_local\n - get_local_file\n - get_country\n - get_menu\n - get_search_id\n - get_xml_id_from_id\n - get_record\n\nThese functions can be nested by using the o object:\n\n```yml\nIr model Data Config:\n  datas:\n    Add employee document xmlid:\n      model: ir.model.data\n      force_id: template_01_employee_01\n      values:\n        model: paper.paper\n        module: external_config\n        name: template_01_employee_01\n        res_id: get_search_id('paper.paper', [\n                ('template_id', '=', o.get_ref('external_config.template_01')),\n                ('res_id', '=', o.get_ref('external_config.employee_01'))\n                ], 'desc')\n```\n\n## Server Actions and Functions\n\nTo call a model function:\n```yml\n    001 Call Function:\n      datas:\n        Call Function:\n          function: example_function\n          model: res.parnter\n          res_id: get_ref(\"base.partner_demo\")\n          params: ['param1', param2]\n          kw: {'extra_param1': get_ref('external_config.extra_param1')}  \n```\n\nTo call an action server (`ir.actions.server`):\n```yml\n    002 Call Action Server:\n      datas:\n        Call Action Server:\n          action_server_id: get_ref(\"custom_module.action_exemple\")\n          model: res.parnter\n          res_id: get_ref(\"base.partner_demo\")\n```\n\n## Users\n\nTo set groups on a user you can remove previous groups with \"unlink all\":\n```yml\n    users:\n        datas:\n            User Example:\n                model: res.users\n                force_id: base.user_example\n                values:\n                    name: Example\n                    login: example@test.com\n                groups_id:\n                    - unlink all\n                    - base.group_portal\n```\n                    \n## Other data tools\n\n- delete_all\n- delete_domain\n- delete_id\n- deactivate\n- activate\n- update_domain\n  - search_value_xml_id\n      - this option allows to pass an id from xml_id to a domain\n      - Can be used with update_domain, activate, deactivate:\n  \n        ```yml        \n                      Deactivate Partner Title doctor:\n                          model: res.partner.title\n                          search_value_xml_id: base.res_partner_title_doctor\n                          deactivate: \"[('id', '=', search_value_xml_id)]\"\n        ```\n\n## Translations\n\nTo set the translation of a translatable field, use the **languages** option.\nExample:\n```yml\n    Mail Templates:\n        datas:\n            Notification:\n                model: mail.template\n                force_id: mail.notification_template\n                languages:\n                    - fr_FR\n                    - en_US\n                values:\n                    body_html: |\n                        <table>\n                            <tbody>\n                            Text for french and english\n                            </tbody>\n                        </table>\n```\n\n## Mattermost Notification\n\nTo set a Mattermost url and channel where to send notifications:\n```yml\n    mattermost_channel: my-channel\n    mattermost_url: https://mattermost.xxx.com/hooks/dfh654fgh\n```\n\nTo avoid Mattermost notification, add in main yaml file:\n```yml\n    no_notification: True\n```\n\n## Keepass\n\nKeepass is a tool to store and protect passwords.\n\nAvailable functions to use stored values in Keepass:\n```yml\n    password: get_keepass_password('path/passwords.kdbx', 'Folder Name', 'Key Name')\n    user: get_keepass_user('path/passwords.kdbx', 'Folder Name', 'Key Name')\n    url: get_keepass_url('path/passwords.kdbx', 'Folder Name', 'Key Name')\n```\n\nTo avoid to repeat path and group in Keepass functions, you can set `keepass_path` and `keepass_group`\n```yml\nkeepass_path: path/passwords.kdbx\nkeepass_group: Folder Name\n\nmy_secret: get_keepass_password('Key Name')\n```\n\n3 ways to pass the Keepass password to odoo-configurator :\n - Provide Keepass password with the keepass parameter in command line: `--keepass='mdp***'`\n - Set the `KEEPASS_PASSWORD` environment variable\n - Manually. If it's required odoo-configurator will ask to type the password with the prompt `Keepass Password:`\n\n In PyCharm, to type the Keepass password, please check the `Emulate terminal in output console` option in your run/debug configuration.\n\n## Bitwarden\n\nBitwarden is a tool to store and protect passwords. Make sure Bitwarden CLI is installed.\n\nCredentials to connect to Bitwarden Vault can be set by environment variables, please report to the [s6r-bitwarden-cli documentation](https://pypi.org/project/s6r-bitwarden-cli)\n\nAn over option is to set the value of `bitwarden_username` and  `bitwarden_password` in yml file. Obviously, do not save password directly in your yml file, use Keepass functions for example.\n\n```yml\nbitwarden_username: get_keepass_user('Bitwarden')\nbitwarden_password: get_keepass_password('Bitwarden')\n```\n\n## Standard CSV Import\n\nColumns in the CSV file must be the technical name of the field.\nA column \"id\" is required to allow update of datas. \n\nIn yml file:\n\n```yml\n    import_data:\n        import_csv Product Template:\n            on_install_only: True\n            model: product.template\n            name_create_enabled_fields: uom_id,uom_po_id,subscription_template_id\n            file_path: ../datas/todoo/product.template.csv\n            specific_import: base/import_specific.py\n            specific_method: import_partner\n            batch_size: 200\n            skip_line: 1420\n            limit: 100\n            context: {'install_mode': True}\n```\n\n### Required fields:\n\n  - model\n  - file_path\n\n### Optional fields:\n\n  - **name_create_enabled_fields** : List of the fields which are allowed to \"Create the record if it doesn't exist\"\n  - **on_install_only** : Do the csv export only in **Install Mode**\n  - **context** : Provide a specific context for imports\n  - **specific_import** : Path to a specific Python file\n  - **specific_method** : Import method to use form the file **specific_import**\n  - **batch_size** : Number of records by load batch\n  - **limit** : Maximum number of record to import\n  - **skip_line** : index of the record to start with\n\n\n## Generate YML data file from a model\n\nThis configuration will generate a res_partner.yml file in the **config** directory\n```yml\nActions:\n    import_configurator_model_file:\n        Portal Form:\n            model: res.partner\n            domain: [['is_company', '=', True]]  # Don't use parenthesis in the domain\n            order_by: name, ref\n            force_export_fields: [\"email_formatted\", \"country_code\"]\n            excluded_fields: [\"email\", \"country_id\"]\n```\n\n## Release Configuration\n\nSome configurations need to be executed on every platform until the production release. After that we need to archive these configuration files.\nWe will store the files in the directory *release_config* for example.\nTo run all these files, add the **release_directory** parameter in your main configuration file:\n\n```yml\n    release_directory: ./release_config\n```\n\nTo back up the release files after the execution of the production configuration, add the **clear_release_directory** parameter in you production configuration file.\n\n```yml\n  clear_release_directory: True\n```\n\n## Contributors\n\n* David Halgand\n* Michel Perrocheau - [Github](https://github.com/myrrkel)\n\n\n## Maintainer\n\nThis software was created by [Hodei](https://www.hodei.net) formerly Teclib' ERP, \nmaintenance is now being handled by [Scalizer](https://www.scalizer.fr).\n\n\n<div style=\"text-align: center;\">\n\n[![Scaliser](./logo_scalizer.png)](https://www.scalizer.fr)\n\n[![Hooei](./logo_hodei.jpg)](https://www.hodei.net)\n\n</div>\n",
    "bugtrack_url": null,
    "license": "GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007  Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.   This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below.  0. Additional Definitions.  As used herein, \"this License\" refers to version 3 of the GNU Lesser General Public License, and the \"GNU GPL\" refers to version 3 of the GNU General Public License.  \"The Library\" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below.  An \"Application\" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library.  A \"Combined Work\" is a work produced by combining or linking an Application with the Library.  The particular version of the Library with which the Combined Work was made is also called the \"Linked Version\".  The \"Minimal Corresponding Source\" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version.  The \"Corresponding Application Code\" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work.  1. Exception to Section 3 of the GNU GPL.  You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL.  2. Conveying Modified Versions.  If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version:  a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or  b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy.  3. Object Code Incorporating Material from Library Header Files.  The object code form of an Application may incorporate material from a header file that is part of the Library.  You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following:  a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License.  b) Accompany the object code with a copy of the GNU GPL and this license document.  4. Combined Works.  You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following:  a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License.  b) Accompany the Combined Work with a copy of the GNU GPL and this license document.  c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document.  d) Do one of the following:  0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.  1) Use a suitable shared library mechanism for linking with the Library.  A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version.  e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.)  5. Combined Libraries.  You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following:  a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License.  b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.  6. Revised Versions of the GNU Lesser General Public License.  The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.  Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License \"or any later version\" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation.  If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library. ",
    "summary": "Configure and update Odoo database with YAML files",
    "version": "3.4.7",
    "project_urls": {
        "Changelog": "https://github.com/ScalizerOrg/odoo-configurator/CHANGELOG.md",
        "Homepage": "https://github.com/ScalizerOrg/odoo-configurator"
    },
    "split_keywords": [
        "odoo",
        " configurator",
        " xmlprc",
        " yaml"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "05f05690fd79db7496c85c6d05c6a82ec714e2c285b2b42731cdf088cb9eb69d",
                "md5": "693cd34de4c1fd0e0ca92273804ae43f",
                "sha256": "2de8ebb68ddd4ba7272554b7ccbc5f921263bcd6ac29e666a47dd1edbec0bdfc"
            },
            "downloads": -1,
            "filename": "odoo_configurator-3.4.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "693cd34de4c1fd0e0ca92273804ae43f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 47698,
            "upload_time": "2024-05-02T08:25:46",
            "upload_time_iso_8601": "2024-05-02T08:25:46.717240Z",
            "url": "https://files.pythonhosted.org/packages/05/f0/5690fd79db7496c85c6d05c6a82ec714e2c285b2b42731cdf088cb9eb69d/odoo_configurator-3.4.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9037c18813d566ac00acec113760b01a359ca0f3324781f0181e77e94887753f",
                "md5": "ed4b1def0e2f1aae031820f62639ad3c",
                "sha256": "e02bfd3f8c33198c94f89f88385f6eff5a4fe801b943402cf8d46a8cc9fb7f16"
            },
            "downloads": -1,
            "filename": "odoo_configurator-3.4.7.tar.gz",
            "has_sig": false,
            "md5_digest": "ed4b1def0e2f1aae031820f62639ad3c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 44738,
            "upload_time": "2024-05-02T08:25:48",
            "upload_time_iso_8601": "2024-05-02T08:25:48.764790Z",
            "url": "https://files.pythonhosted.org/packages/90/37/c18813d566ac00acec113760b01a359ca0f3324781f0181e77e94887753f/odoo_configurator-3.4.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-02 08:25:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ScalizerOrg",
    "github_project": "odoo-configurator",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "odoo-configurator"
}
        
Elapsed time: 0.26222s