Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] connector: Migration to 18.0 #494

Merged
merged 809 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
809 commits
Select commit Hold shift + click to select a range
a267797
Update index.rst
maxime-c2c Nov 16, 2015
38950db
Set job back to 'pending' in case of exception
mdietrichc2c Nov 18, 2015
a2f8ba2
Fix bug introduced in c97ebbd in jobrunner
guewen Nov 27, 2015
25411d2
Fix the fix c3fefd2 :-(
guewen Dec 3, 2015
28cc952
[FIX] correctly obtain the list of database with odoo is started with…
sbidoul Dec 27, 2015
8a071a0
[FIX] ignore dbfilter containing %d or %h, fixes #58
sbidoul Dec 27, 2015
63bcdc3
Manage non-ascii PG errors
npiganeau Dec 28, 2015
eaf31e3
Removed trailing whitespace
npiganeau Dec 28, 2015
9ea634b
Use tools.ustr() instead of unicode()
npiganeau Jan 4, 2016
41df4a4
OCA Transbot updated translations from Transifex
oca-transbot Jan 16, 2016
5bf4df8
Prevent to unpickle globals which are not jobs
guewen Feb 8, 2016
c895f25
Fix too long line
guewen Feb 22, 2016
5070f51
Release 8.0.3.3.0
guewen Feb 29, 2016
af867af
Update mailing list address
guewen Oct 30, 2015
5ab2ec8
Update index.rst
maxime-c2c Nov 16, 2015
d1a63bb
[FIX] ignore dbfilter, fixes #58
sbidoul Jan 4, 2016
f950b57
[MIG] Make module installable
lmignon Feb 15, 2016
df8703b
[MIG] Use python standard lib unittest in place of unittest2
lmignon Feb 15, 2016
6c0d02d
[MIG] email followers are instance of model 'mail.followers'
lmignon Feb 15, 2016
030101d
[MIG] value returned by _company_default_get is a BrowseRecord
lmignon Feb 15, 2016
ed34cee
[DEL] Remove the old connector worker
lmignon Feb 15, 2016
28cf507
[PEP8]
lmignon Feb 15, 2016
48d915d
[FIX] In the last release of Odoo related partner created from an ina…
lmignon Feb 15, 2016
4fec647
[FIX] The first version is 9.0.1.0.0
lmignon Feb 15, 2016
90dc361
[FIX] fix path of odoo for doc build
lmignon Feb 18, 2016
a854122
[DEL] Remove deprecated APIs
lmignon Feb 29, 2016
1fdbf61
remove remnants of workers
sbidoul Mar 3, 2016
c28ac28
enable the jobrunner by default
sbidoul Mar 3, 2016
a1cbb5d
bump version
sbidoul Mar 3, 2016
9f87d63
remove unused import
sbidoul Mar 3, 2016
52c4b37
update changelog
sbidoul Mar 3, 2016
bb5dfc0
adapt to upstream api change to obtain db connection
sbidoul Mar 3, 2016
a72b585
Bump version number
sbidoul Mar 3, 2016
0e56a2f
Update changelog for 9.0.1.0.2
guewen Mar 3, 2016
e020b0b
OCA Transbot updated translations from Transifex
oca-transbot Mar 5, 2016
997c167
OCA Transbot updated translations from Transifex
oca-transbot Mar 19, 2016
455743a
OCA Transbot updated translations from Transifex
oca-transbot Apr 2, 2016
32908d5
OCA Transbot updated translations from Transifex
oca-transbot Apr 23, 2016
9dfefeb
Move connector settings menu to technical
lasley Apr 29, 2016
45a4dc8
Fix backend_to_m2o to extract id of the binding
guewen Dec 1, 2015
369c7ed
[DOC] fix highlight of license
yvaucher Jun 29, 2016
41e999a
OCA Transbot updated translations from Transifex
oca-transbot Aug 13, 2016
7a436f6
Add job_uuid in context
YannickB Mar 2, 2016
1384213
Added test for job uuid in session context.
nicolas-petit Mar 11, 2016
d669f05
Removing log traces.
nicolas-petit Mar 11, 2016
66874a5
[FIX] remove en.po that was erroneously created by transbot
sbidoul Aug 15, 2016
160b5e4
OCA Transbot updated translations from Transifex
oca-transbot Aug 20, 2016
490b82f
[FIX] error handling bug
sbidoul Aug 20, 2016
803cd57
[DOC] remove mention of v9 crowdfunding
sbidoul Aug 20, 2016
8a600d9
[REF] remove old code that was there for backward compatibility
sbidoul Aug 20, 2016
1ff43e2
[ADD] first implementation of channel delay
sbidoul Aug 20, 2016
2588a81
[IMP] to be consistent, use the same 'now' concept everywhere
sbidoul Aug 20, 2016
2b085de
[IMP] more precise wakeup at the end of delays between jobs
sbidoul Aug 22, 2016
0d9548e
rename delay key as throttle
sbidoul Aug 23, 2016
2fafa96
Fix wrong recordset returned when no binding found
guewen Sep 6, 2016
762195a
[FIX] connector: Zero value assertion
lasley Sep 14, 2016
770f495
Remove cancellation of jobs and their active flag
guewen May 24, 2016
0cd5d4e
OCA Transbot updated translations from Transifex
oca-transbot Sep 17, 2016
79ccdf8
Set addons uninstallable
guewen Oct 3, 2016
f3b18a0
Make the connector addon installable
guewen Oct 3, 2016
7f0295c
Replace 'select=True' by 'index=True'
guewen Oct 3, 2016
661d1fd
Rename openerp to odoo in Python files
guewen Oct 3, 2016
999e8f9
Rename xml files with odoo instead of openerp
guewen Oct 3, 2016
1a9dba7
Rename openerp to odoo in docs
guewen Oct 3, 2016
c8ef167
Replace monkey-patch by a proper inherit
guewen Oct 3, 2016
d36abfb
Remove usage of @api.one
guewen Oct 3, 2016
66ae19b
Upgrade version number
guewen Oct 4, 2016
473a568
Replace ConnectorSession by odoo.Environment
guewen Oct 4, 2016
29ca53e
Merge JobStorage into Job
guewen Oct 4, 2016
e6439d3
Extract the queue_job from connector
guewen Oct 4, 2016
b40f0ce
Remove ConnectorSession
guewen Oct 4, 2016
d4f4684
Typo
guewen Oct 4, 2016
6659fa2
Remove migration code for a previous odoo version
guewen Oct 4, 2016
d2db5bf
Use short license headers
guewen Jan 12, 2017
d57edca
Add is_module_installed function
guewen Jan 12, 2017
72bbf32
Rework slighty the default Binder
guewen Jan 12, 2017
2bc7d18
Add a test_connector addon
guewen Jan 12, 2017
d3e2312
Start to actualize documentation
guewen Jan 12, 2017
c324255
Remove 'env' argument from ConnectorEnvironment
guewen Jan 12, 2017
3906e89
Remove application flag, not an application
guewen Jan 12, 2017
dbfbabe
str to ustr
leemannd Feb 17, 2017
4864ea1
Tentative to build docs
guewen Mar 6, 2017
d614da9
Remove invalid URL
guewen Mar 9, 2017
016f0cb
OCA Transbot updated translations from Transifex
oca-transbot Mar 11, 2017
c441ab4
[FIX] mapper: Remove orphan method _map_children
lmignon Jun 8, 2017
d63ba42
OCA Transbot updated translations from Transifex
oca-transbot Jul 15, 2017
330ee1f
Start prototype of a component system
guewen Jan 12, 2017
14f33f4
Start to implement the collection system
guewen Jan 12, 2017
80f9ac3
Improve on the collections, work, ...
guewen Jan 15, 2017
14ff969
Extract 'components' into an individual addon
guewen Jan 15, 2017
aff0d09
Add test_component
guewen Jan 15, 2017
a539032
Start to use 'components' in connector
guewen Feb 27, 2017
5b9afe7
Add core components in connector
guewen Jun 12, 2017
a10b0d1
Add AbstractComponent
guewen Jun 13, 2017
93b8430
Remove overrides of attributes
guewen Jun 13, 2017
734df06
Replace unit_for by components
guewen Jun 13, 2017
03ebf39
Instanciate the component returned by name
guewen Jun 13, 2017
5cd9618
Get rid of MetaMapper
guewen Jun 14, 2017
d6d6d03
Make unwrap_binding compatible with components
guewen Jun 14, 2017
179bac5
Use 2 different methods for single/many lookup
guewen Jun 15, 2017
95c35c5
Add tests for connector mapper
guewen Jun 16, 2017
27d2259
Add deprecation comments
guewen Jun 16, 2017
26b6802
Remove some Mapper duplication
guewen Jun 16, 2017
0d933ab
Add/move tests for advisory locks
guewen Jun 16, 2017
455551d
Update documentation
guewen Jun 17, 2017
d24c409
Start to write a migration guide
guewen Jun 17, 2017
b5437fe
Draft new component_event addon
guewen Jun 17, 2017
60a4b7d
Move test_producer in deprecated
guewen Jun 19, 2017
7d5c4c9
Continue the migration guide
guewen Jun 19, 2017
ee4df2a
Rewrite some parts of the doc, notably code overview
guewen Jun 19, 2017
b8a5d10
Fix test: post_install
guewen Jun 19, 2017
bc7d403
We have now the 3 parts with a new API :)
guewen Jun 20, 2017
70dee9e
Add Manager group on partner view connector's tab
guewen Jun 21, 2017
07434cd
Add @skip_if decorator to skip events
guewen Jun 22, 2017
6748983
Change Collection.work_on() to a context manager
guewen Jun 22, 2017
c6ddc95
Remove required on the version field
guewen Jun 23, 2017
c035d46
Simplify tests by loading modules components
guewen Jun 30, 2017
ff0cb00
Add new TestCase classes to test connectors
guewen Jul 4, 2017
b1126a9
Exclude current addon in ComponentRegistryCase setup
guewen Jul 6, 2017
e60d95a
Add a content index in the migration guide
guewen Jul 10, 2017
01893c8
Checkpoint wizard is too slow
guewen Jul 11, 2017
02dccdc
Add readme files
guewen Jul 11, 2017
6b14e80
Bump connector version
guewen Jul 11, 2017
333591f
Add links for versions in doc
guewen Aug 22, 2017
4804f07
[10.0][FIX] connector : Avoid creating void child values
rousseldenis Sep 20, 2017
60ea80f
[MIG] Set modules uninstallable
guewen Oct 3, 2017
74d0f37
Make addons installable
guewen Oct 3, 2017
8dc4e23
PY3: apply automated changes by 2to3 on addons
guewen Oct 3, 2017
06eacb2
Remove ConnectorUnit features
guewen Oct 3, 2017
7e3320f
Apply odoo renaming of models or methods in connector
guewen Oct 3, 2017
1da8427
PY3: hashlib.hasher takes bytes
guewen Oct 3, 2017
d11e9fa
Use the conventional module layout
guewen Oct 3, 2017
1a1fc5d
Fix build of docs
guewen Oct 4, 2017
5f6c752
Build 11.0 docs
guewen Jan 10, 2018
c1f89da
Fix connector docs dotted path to models
simahawk Mar 30, 2018
7243e7c
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
7adeb88
Translated using Weblate (French)
guewen Jun 27, 2018
54cb572
Improve documentation of APIs
guewen Mar 30, 2018
b022d74
Add RecordLocker component
guewen Jul 18, 2018
92b732e
Translated using Weblate (Portuguese (Brazil))
Aug 3, 2018
7196b05
Fix documentation build
guewen Nov 6, 2018
7cbb299
Migrate connector to 12.0
guewen Nov 26, 2018
2656d22
[IMP] add generic exporter extracted from Magento connector
guewen Oct 9, 2017
972e694
Make connector checkpoint compatible in multi company environment
florian-dacosta May 8, 2019
0169703
[IMP] connector: Add Infor and Voicent connectors
max3903 Jul 1, 2019
bdc68c6
Translated using Weblate (Portuguese (Brazil))
Aug 26, 2019
6e8b9e4
Translated using Weblate (Chinese (Simplified))
liweijie0812 Aug 29, 2019
9027e46
Translated using Weblate (Chinese (Simplified))
liweijie0812 Aug 30, 2019
f9b99f2
Translated using Weblate (Chinese (Simplified))
liweijie0812 Sep 1, 2019
34b3df5
Set modules uninstallable
guewen Oct 10, 2019
8c333db
[UPD] make the sphinx config version independent
gurneyalex Oct 11, 2019
eb05990
[12.0][CHG] connector: Use more permissive licence: AGPL-> LGPL
lmignon Oct 14, 2019
a53e04a
[MIG] connector and test_connector: Migration to 13.0
Oct 22, 2019
12f0d19
connector, test_connector: black isort
lmignon Oct 25, 2019
f4a4231
Translated using Weblate (Chinese (Simplified))
liweijie0812 Dec 13, 2019
28c87c2
Translated using Weblate (Portuguese (Brazil))
Mar 21, 2020
7aaa46f
[doc] build 13.0 as main documentation
guewen May 19, 2020
d8e4820
[doc] fix links
guewen May 19, 2020
b4f7368
connector: Delete 12.0 migrations in module 13.0
guewen Jun 17, 2020
cb6c3f8
Translated using Weblate (Chinese (Simplified))
liweijie0812 Jul 8, 2020
5764200
[IMP] connector: black, isort, prettier
eantones Oct 16, 2020
632e5ed
[MIG] connector: Migration to 14.0
eantones Oct 16, 2020
f0e4c43
Remove connector checkpoints
guewen Mar 26, 2021
7f5ce3d
[UPD] Update connector.pot
oca-travis Mar 26, 2021
22c4bdf
[UPD] README.rst
OCA-git-bot Mar 26, 2021
b852b5e
connector: add web_icon to root menu item
ruuter Dec 7, 2020
022c447
connector: new app icon
ruuter Dec 7, 2020
f15f1a3
connector 14.0.1.1.0
OCA-git-bot Aug 16, 2021
d69f9f7
Initialize 15.0 branch
lmignon Nov 25, 2021
ad0b74a
[MIG][15.0] component
i-vyshnevska Dec 2, 2021
948222a
[UPD] Update connector.pot
Jan 25, 2022
01ba5da
[UPD] README.rst
OCA-git-bot Jan 25, 2022
80a9aa9
connector: fix collections.Callable warning
simahawk Apr 13, 2022
601ea89
connector 15.0.1.0.1
OCA-git-bot Apr 14, 2022
49fa717
Use built-in callable()
florentx May 5, 2022
7d2e2ec
connector 15.0.1.0.2
OCA-git-bot May 6, 2022
fd173e9
[REF] remove explicit 'object' inheritance
florentx Jan 27, 2022
56612c9
[REF] obsolete coding cookie
florentx Feb 2, 2022
0753de2
[FIX] typos in connector.mapper docstrings
florentx Feb 2, 2022
5b71775
[FIX] connector: restore binder context
danielduqma Sep 9, 2020
37382e8
connector 15.0.1.0.3
OCA-git-bot Aug 1, 2022
99bb234
[IMP] connector: bump icon style
ivantodorovich Sep 5, 2022
e68f13d
connector 15.0.1.0.4
OCA-git-bot Sep 5, 2022
4ed6195
[16.0][MIG] connector + test_connector: Migration to 16.0
asierneiradev Sep 28, 2022
6d78caa
[UPD] Update connector.pot
Feb 23, 2023
4f07db6
[UPD] README.rst
OCA-git-bot Feb 23, 2023
dc31ebf
Translated using Weblate (Spanish)
Ivorra78 Aug 2, 2023
c222338
[UPD] README.rst
OCA-git-bot Sep 3, 2023
0782011
Update translation files
weblate Oct 9, 2023
710dd01
[IMP] connector: black, isort, prettier
nguyenminhchien Nov 27, 2023
f0907c5
[MIG] connector: Migration to 17.0
nguyenminhchien Dec 11, 2023
2c4a9b8
[UPD] Update connector.pot
Dec 11, 2023
02b39b3
[BOT] post-merge updates
OCA-git-bot Dec 11, 2023
238d35b
Translated using Weblate (Italian)
mymage Feb 4, 2024
f04494d
Translated using Weblate (Italian)
mymage Feb 12, 2024
f4a76f9
[FIX] connector: Pre-commit fixes
pedrobaeza May 1, 2024
de2d30e
[BOT] post-merge updates
OCA-git-bot May 1, 2024
39fbb22
[MIG] connector: Migration to 18.0
thienvh332 Sep 19, 2024
164d66a
Add a test_connector addon
guewen Jan 12, 2017
33ed5f9
Remove 'env' argument from ConnectorEnvironment
guewen Jan 12, 2017
06c568d
OCA Transbot updated translations from Transifex
oca-transbot Mar 11, 2017
74de9ed
Start prototype of a component system
guewen Jan 12, 2017
fb09802
Start to implement the collection system
guewen Jan 12, 2017
623bd87
Improve on the collections, work, ...
guewen Jan 15, 2017
6be7e5e
Add test_component
guewen Jan 15, 2017
2c7e8b0
Fix error messages
guewen Jun 16, 2017
b730a99
Update test_connector
guewen Jun 16, 2017
ee049d7
Fix test: post_install
guewen Jun 19, 2017
860854b
Change Collection.work_on() to a context manager
guewen Jun 22, 2017
9ac1dac
Add new TestCase classes to test connectors
guewen Jul 4, 2017
6e85707
Add description in test addons to make pylint happier
guewen Aug 15, 2017
3562a68
[MIG] Set modules uninstallable
guewen Oct 3, 2017
d9dc676
Make addons installable
guewen Oct 3, 2017
beef5d6
PY3: apply automated changes by 2to3 on addons
guewen Oct 3, 2017
995eb45
Remove ConnectorUnit features
guewen Oct 3, 2017
cc25464
Fix some pylint-odoo warnings
guewen Oct 3, 2017
466b889
OCA Transbot updated translations from Transifex
oca-transbot Jan 6, 2018
2b7db62
[MIG] Make modules uninstallable
OCA-git-bot Sep 26, 2018
3572884
Migrate connector to 12.0
guewen Nov 26, 2018
9059491
[UPD] README.rst
OCA-git-bot Jan 14, 2019
046d1db
[ADD] icon.png
OCA-git-bot Apr 3, 2019
aa2f0b4
[UPD] Update test_connector.pot
oca-travis Jan 14, 2019
d44a406
Set modules uninstallable
guewen Oct 10, 2019
6c81a9e
[12.0][CHG] connector: Use more permissive licence: AGPL-> LGPL
lmignon Oct 14, 2019
b712529
[MIG] connector and test_connector: Migration to 13.0
Oct 22, 2019
3482c07
connector, test_connector: black isort
lmignon Oct 25, 2019
086706e
test_connector: fix tests
lmignon Oct 25, 2019
4441442
[UPD] README.rst
OCA-git-bot Nov 2, 2019
c1bc1f5
[IMP] test_connector: black, isort, prettier
guewen Apr 24, 2021
a63929d
[MIG] test_connector: Migration to 14.0
guewen Apr 24, 2021
4e4da2e
[UPD] Update test_connector.pot
oca-travis Apr 28, 2021
f2d2bc8
[UPD] README.rst
OCA-git-bot Apr 28, 2021
7ac71bc
Initialize 15.0 branch
lmignon Nov 25, 2021
94f5677
[MIG][15.0] test_connector
i-vyshnevska Dec 2, 2021
6a40d24
[UPD] Update test_connector.pot
Jan 25, 2022
ba09019
[UPD] README.rst
OCA-git-bot Jan 25, 2022
15b67e3
[16.0][MIG] connector + test_connector: Migration to 16.0
asierneiradev Sep 28, 2022
02c6903
[UPD] README.rst
OCA-git-bot Feb 23, 2023
9f6f3ee
Translated using Weblate (Italian)
mymage Mar 23, 2023
ce3aab7
Translated using Weblate (Slovenian)
sysadminmatmoz Apr 11, 2023
a31d247
Translated using Weblate (Spanish)
Ivorra78 Aug 2, 2023
f95a81d
[UPD] README.rst
OCA-git-bot Sep 3, 2023
5427bfa
[IMP] test_connector: black, isort, prettier
nguyenminhchien Nov 27, 2023
d480d21
[MIG] test_connector: Migration to 17.0
nguyenminhchien Nov 27, 2023
4940368
[UPD] Update test_connector.pot
Dec 11, 2023
0ebd27f
[BOT] post-merge updates
OCA-git-bot Dec 11, 2023
9d336b1
Update translation files
weblate Feb 3, 2024
2a8259d
Update translation files
weblate Feb 3, 2024
511937d
Translated using Weblate (Italian)
mymage Feb 6, 2024
69c0896
[MIG] test_connector: Migration to 18.0
thienvh332 Sep 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
166 changes: 166 additions & 0 deletions connector/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
=========
Connector
=========

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:c3fb5d7af399741b082a3725c3698dd038043c4a6a855da345ea1f9f9cb3a979
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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
: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
:target: https://github.com/OCA/connector/tree/18.0/connector
:alt: OCA/connector
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/connector-18-0/connector-18-0-connector
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/connector&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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

Documentation: http://odoo-connector.com

It features:

- A jobs queue

In which the connectors can push functions (synchronization tasks)
to be executed later.

- An event pattern

The connectors can subscribe listener functions on the events,
executed when the events are fired.

- Connector base classes

Called ``ConnectorUnit``.

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

- 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)

It is used for example used to connect
`Magento <http://odoo-magento-connector.com>`__ and
`Prestashop <https://github.com/OCA/connector-prestashop>`__, but also
used with Solr, CMIS, ...

**Table of contents**

.. contents::
:local:

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
=========

Next
----

12.0.1.0.0 (2018-11-26)
-----------------------

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

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/connector/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
`feedback <https://github.com/OCA/connector/issues/new?body=module:%20connector%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* Camptocamp

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.

Other credits
-------------

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

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/connector <https://github.com/OCA/connector/tree/18.0/connector>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions connector/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import components
from . import models
18 changes: 18 additions & 0 deletions connector/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2013 Camptocamp SA
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html)

{
"name": "Connector",
"version": "18.0.1.0.0",
"author": "Camptocamp,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/connector",
"license": "LGPL-3",
"category": "Generic Modules",
"depends": ["mail", "queue_job", "component", "component_event"],
"data": [
"security/connector_security.xml",
"views/connector_menu.xml",
"views/res_partner_views.xml",
],
"installable": True,
}
7 changes: 7 additions & 0 deletions connector/components/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from . import core
from . import backend_adapter
from . import binder
from . import mapper
from . import listener
from . import locker
from . import synchronizer
64 changes: 64 additions & 0 deletions connector/components/backend_adapter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Copyright 2013 Camptocamp SA
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html)

"""

Backend Adapter
===============

An external adapter has a common interface to speak with the backend.
It translates the basic orders (search, read, write) to the protocol
used by the backend.

"""

from odoo.addons.component.core import AbstractComponent


class BackendAdapter(AbstractComponent):
"""Base Backend Adapter for the connectors"""

_name = "base.backend.adapter"
_inherit = "base.connector"
_usage = "backend.adapter"


# pylint: disable=W8106
class CRUDAdapter(AbstractComponent):
"""Base External Adapter specialized in the handling
of records on external systems.

This is an empty shell, Components can inherit and implement their own
implementation for the methods.

"""

_name = "base.backend.adapter.crud"
_inherit = "base.backend.adapter"
_usage = "backend.adapter"

def search(self, *args, **kwargs):
"""Search records according to some criterias
and returns a list of ids"""
raise NotImplementedError

Check warning on line 43 in connector/components/backend_adapter.py

View check run for this annotation

Codecov / codecov/patch

connector/components/backend_adapter.py#L43

Added line #L43 was not covered by tests

def read(self, *args, **kwargs):
"""Returns the information of a record"""
raise NotImplementedError

Check warning on line 47 in connector/components/backend_adapter.py

View check run for this annotation

Codecov / codecov/patch

connector/components/backend_adapter.py#L47

Added line #L47 was not covered by tests

def search_read(self, *args, **kwargs):
"""Search records according to some criterias
and returns their information"""
raise NotImplementedError

Check warning on line 52 in connector/components/backend_adapter.py

View check run for this annotation

Codecov / codecov/patch

connector/components/backend_adapter.py#L52

Added line #L52 was not covered by tests

def create(self, *args, **kwargs):
"""Create a record on the external system"""
raise NotImplementedError

Check warning on line 56 in connector/components/backend_adapter.py

View check run for this annotation

Codecov / codecov/patch

connector/components/backend_adapter.py#L56

Added line #L56 was not covered by tests

def write(self, *args, **kwargs):
"""Update records on the external system"""
raise NotImplementedError

Check warning on line 60 in connector/components/backend_adapter.py

View check run for this annotation

Codecov / codecov/patch

connector/components/backend_adapter.py#L60

Added line #L60 was not covered by tests

def delete(self, *args, **kwargs):
"""Delete a record on the external system"""
raise NotImplementedError

Check warning on line 64 in connector/components/backend_adapter.py

View check run for this annotation

Codecov / codecov/patch

connector/components/backend_adapter.py#L64

Added line #L64 was not covered by tests
Loading
Loading