diff --git a/README.md b/README.md index e8a71d3c9..519ce4acb 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ addon | version | maintainers | summary --- | --- | --- | --- [component](component/) | 18.0.1.0.0 | guewen | Add capabilities to register and use decoupled components, as an alternative to model classes [component_event](component_event/) | 18.0.1.0.0 | | Components Events -[connector](connector/) | 18.0.1.0.0 | | Connector +[connector](connector/) | 18.0.1.0.1 | | Connector [connector_base_product](connector_base_product/) | 18.0.1.0.0 | | Connector Base Product [test_component](test_component/) | 18.0.1.0.0 | guewen | Automated tests for Components, do not install. [test_connector](test_connector/) | 18.0.1.0.0 | | Automated tests for Connector, do not install. diff --git a/connector/README.rst b/connector/README.rst index 98735e091..172095f84 100644 --- a/connector/README.rst +++ b/connector/README.rst @@ -1,3 +1,7 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + ========= Connector ========= @@ -7,13 +11,13 @@ Connector !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:ee8bf3dca05f71b361db559dd22a0bd4021e2fc048039e905b961a9df1fd9d19 + !! source digest: sha256:ec95cfa5146e6491961cf161c267ba962da7b013830d90dbd993e525e7fc5cfb !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status :alt: Beta -.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png +.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fconnector-lightgray.png?logo=github @@ -35,35 +39,35 @@ Documentation: http://odoo-connector.com It features: -- A jobs queue +- A jobs queue - In which the connectors can push functions (synchronization tasks) - to be executed later. + In which the connectors can push functions (synchronization tasks) + to be executed later. -- An event pattern +- An event pattern - The connectors can subscribe listener functions on the events, - executed when the events are fired. + The connectors can subscribe listener functions on the events, + executed when the events are fired. -- Connector base classes +- Connector base classes - Called ``ConnectorUnit``. + Called ``ConnectorUnit``. - Include base classes for the use in connectors, ready to be - extended: + Include base classes for the use in connectors, ready to be + extended: - - ``Synchronizer``: flow of an import or export - - ``Mapper``: transform a record according to mapping rules - - ``Binder``: link external IDs with local IDS - - ``BackendAdapter``: adapter interface for the exchanges with - the backend - - But ``ConnectorUnit`` can be extended to accomplish any task + - ``Synchronizer``: flow of an import or export + - ``Mapper``: transform a record according to mapping rules + - ``Binder``: link external IDs with local IDS + - ``BackendAdapter``: adapter interface for the exchanges with the + backend + - But ``ConnectorUnit`` can be extended to accomplish any task -- A multi-backend support +- A multi-backend support - Each ``ConnectorUnit`` can be registered amongst a backend type - (eg. Magento) and a backend version (allow to have a different - ``Mapper`` for each backend's version for instance) + Each ``ConnectorUnit`` can be registered amongst a backend type + (eg. Magento) and a backend version (allow to have a different + ``Mapper`` for each backend's version for instance) It is used for example used to connect `Magento `__ and @@ -91,7 +95,7 @@ Next 12.0.1.0.0 (2018-11-26) ----------------------- -- [MIGRATION] from 12.0 branched at rev. 324e006 +- [MIGRATION] from 12.0 branched at rev. 324e006 Bug Tracker =========== @@ -114,33 +118,33 @@ Authors Contributors ------------ -- Guewen Baconnier at Camptocamp -- Alexandre Fayolle at Camptocamp -- Benoit Guillot at Akretion -- Nicolas Bessi at Camptocamp -- Joël Grand-Guillaume at Camptocamp -- Arthur Vuillard at Akretion -- Sebastien Beau at Akretion -- Laurent Mignon at Acsone -- Leonardo Pistone at Camptocamp -- David Béal at Akretion -- Christophe Combelles at Anybox -- Stéphane Bidoul at Acsone -- Malte Jacobi at IBO / HTW -- Laetitia Gangloff at Acsone -- David Lefever at Taktik S.A. -- Jos de Graeve at Apertoso NV -- Jean-Sébastien Suzanne at Anybox -- Leonardo Donelli at MONK Software -- Mathias Colpaert -- Yannick Vaucher at Camptocamp -- Nicolas Piganeau at NDP Systèmes -- Florent Thomas at Mind And Go -- Matthieu Dietrich at Camptocamp -- Olivier Laurent at Acsone -- Eric Antones at NuoBiT Solutions S.L. -- Asier Neira at Factor Libre S.L. -- Nguyen Minh Chien at Trobz. +- Guewen Baconnier at Camptocamp +- Alexandre Fayolle at Camptocamp +- Benoit Guillot at Akretion +- Nicolas Bessi at Camptocamp +- Joël Grand-Guillaume at Camptocamp +- Arthur Vuillard at Akretion +- Sebastien Beau at Akretion +- Laurent Mignon at Acsone +- Leonardo Pistone at Camptocamp +- David Béal at Akretion +- Christophe Combelles at Anybox +- Stéphane Bidoul at Acsone +- Malte Jacobi at IBO / HTW +- Laetitia Gangloff at Acsone +- David Lefever at Taktik S.A. +- Jos de Graeve at Apertoso NV +- Jean-Sébastien Suzanne at Anybox +- Leonardo Donelli at MONK Software +- Mathias Colpaert +- Yannick Vaucher at Camptocamp +- Nicolas Piganeau at NDP Systèmes +- Florent Thomas at Mind And Go +- Matthieu Dietrich at Camptocamp +- Olivier Laurent at Acsone +- Eric Antones at NuoBiT Solutions S.L. +- Asier Neira at Factor Libre S.L. +- Nguyen Minh Chien at Trobz. Other credits ------------- diff --git a/connector/__manifest__.py b/connector/__manifest__.py index ac43e3e46..6e74dbe29 100644 --- a/connector/__manifest__.py +++ b/connector/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Connector", - "version": "18.0.1.0.0", + "version": "18.0.1.0.1", "author": "Camptocamp,Odoo Community Association (OCA)", "website": "https://github.com/OCA/connector", "license": "LGPL-3", diff --git a/connector/static/description/index.html b/connector/static/description/index.html index ba0c46623..62b7dc854 100644 --- a/connector/static/description/index.html +++ b/connector/static/description/index.html @@ -3,7 +3,7 @@ -Connector +README.rst -
-

Connector

+
+ + +Odoo Community Association + +
+

Connector

-

Beta License: LGPL-3 OCA/connector Translate me on Weblate Try me on Runboat

+

Beta License: LGPL-3 OCA/connector Translate me on Weblate Try me on Runboat

This is a framework designed to build connectors with external systems, usually called Backends in the documentation.

Documentation: http://odoo-connector.com

@@ -396,8 +401,8 @@

Connector

  • Synchronizer: flow of an import or export
  • Mapper: transform a record according to mapping rules
  • Binder: link external IDs with local IDS
  • -
  • BackendAdapter: adapter interface for the exchanges with -the backend
  • +
  • BackendAdapter: adapter interface for the exchanges with the +backend
  • But ConnectorUnit can be extended to accomplish any task
  • @@ -434,25 +439,25 @@

    Connector

    -

    Usage

    +

    Usage

    This module does nothing on its own. It is a ground for developing advanced connector modules. For further information, please go on: http://odoo-connector.com

    -

    Changelog

    +

    Changelog

    -

    12.0.1.0.0 (2018-11-26)

    +

    12.0.1.0.0 (2018-11-26)

    • [MIGRATION] from 12.0 branched at rev. 324e006
    -

    Bug Tracker

    +

    Bug Tracker

    Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed @@ -460,15 +465,15 @@

    Bug Tracker

    Do not contact contributors directly about support or help with technical issues.

    -

    Credits

    +

    Credits

    -

    Authors

    +

    Authors

    • Camptocamp
    -

    Contributors

    +

    Contributors

    • Guewen Baconnier at Camptocamp
    • Alexandre Fayolle at Camptocamp
    • @@ -500,12 +505,12 @@

      Contributors

    -

    Other credits

    +

    Other credits

    The migration of this module from 17.0 to 18.0 was financially supported by Camptocamp.

    -

    Maintainers

    +

    Maintainers

    This module is maintained by the OCA.

    Odoo Community Association @@ -518,5 +523,6 @@

    Maintainers

    +
    diff --git a/connector/tests/test_mapper.py b/connector/tests/test_mapper.py index 98d7e611f..8b8548413 100644 --- a/connector/tests/test_mapper.py +++ b/connector/tests/test_mapper.py @@ -679,7 +679,10 @@ class MyMapper(Component): self._build_components(MyMapper) - partner = self.env.ref("base.res_partner_address_4") + parent = self.env["res.partner"].create({"name": "Deco Addict"}) + partner = self.env["res.partner"].create( + {"name": "My Company", "parent_id": parent.id} + ) mapper = self.comp_registry["my.mapper"](self.work) map_record = mapper.map_record(partner) expected = {"parent_name": "Deco Addict"}