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

[16.0][MIG] connector + test_connector: Migration to 16.0 #442

Merged
merged 781 commits into from
Feb 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
781 commits
Select commit Hold shift + click to select a range
31440ff
Correct flake8 warning: long line
guewen Jul 3, 2015
504236f
Slight changes in the docstrings
guewen Jul 3, 2015
429ea6b
Binder.to_openerp() always returns a recordset
guewen Jul 3, 2015
37a3344
Add a line in the changes file
guewen Jul 3, 2015
548217e
Release 3.2.0
guewen Sep 10, 2015
b5e76b9
Correct the authors list: missing company
guewen Sep 11, 2015
8ca3931
OCA Transbot updated translations from Transifex
oca-transbot Sep 13, 2015
6f67fb5
Add OCA icon
flotho Aug 21, 2015
1c0beb5
[IMP] improve job runner documentation
sbidoul Sep 26, 2015
2952d6e
[IMP] mention web_kanban in the --load option as it is the odoo default
sbidoul Sep 26, 2015
02caf7b
[IMP] answer another jobrunner FAQ in the documentation
sbidoul Sep 28, 2015
fb9a7e6
Allow to define seconds when raising RetryableJobError
guewen Oct 6, 2015
562e57d
Allow to ignore the retry counter when raising RetryableJobError
guewen Oct 6, 2015
bfb1365
Exception should be raised with arguments
guewen Oct 7, 2015
7062e26
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
34add1d
OCA Transbot updated translations from Transifex
oca-transbot Oct 11, 2015
c640d24
Add WooCommerce connector link in documentation
guewen Oct 13, 2015
d435ac4
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
ae693a3
Check if a module is installed from the registry
guewen Oct 15, 2015
ffdbf6d
OCA Transbot updated translations from Transifex
oca-transbot Oct 18, 2015
8e98038
Add 'mock_job_delay_to_direct' to ease tests on jobs
guewen Oct 1, 2015
3eb7d1d
[FIX] Set job to failed after non-retryable OperationalError
npiganeau Oct 26, 2015
1154131
[FIX] Yield session in a clear_upon_failure() environment
npiganeau Oct 21, 2015
d3a7655
Update mailing list address
guewen Oct 30, 2015
db503d3
[8.0][FIX] when a job fails, inactive users are added to its followers
Olivier-LAURENT Oct 30, 2015
3542273
Context manager to acquire Postgres advisory locks
guewen Nov 2, 2015
075a77c
Rename try_advisory_lock to advisory_lock_or_retry
guewen Nov 3, 2015
d044d8e
OCA Transbot updated translations from Transifex
oca-transbot Nov 8, 2015
863210c
Update index.rst
maxime-c2c Nov 16, 2015
9156aaa
Set job back to 'pending' in case of exception
mdietrichc2c Nov 18, 2015
ac17591
Fix bug introduced in c97ebbd in jobrunner
guewen Nov 27, 2015
9332dcc
Fix the fix c3fefd2 :-(
guewen Dec 3, 2015
775290a
[FIX] correctly obtain the list of database with odoo is started with…
sbidoul Dec 27, 2015
eb8ad71
[FIX] ignore dbfilter containing %d or %h, fixes #58
sbidoul Dec 27, 2015
8ee1248
Manage non-ascii PG errors
npiganeau Dec 28, 2015
969c791
Removed trailing whitespace
npiganeau Dec 28, 2015
14be240
Use tools.ustr() instead of unicode()
npiganeau Jan 4, 2016
0dd95d8
OCA Transbot updated translations from Transifex
oca-transbot Jan 16, 2016
7965dc4
Prevent to unpickle globals which are not jobs
guewen Feb 8, 2016
bd5186c
Fix too long line
guewen Feb 22, 2016
879bbda
Release 8.0.3.3.0
guewen Feb 29, 2016
30afec3
Update mailing list address
guewen Oct 30, 2015
5373a7d
Update index.rst
maxime-c2c Nov 16, 2015
72cd302
[FIX] ignore dbfilter, fixes #58
sbidoul Jan 4, 2016
7f16188
[MIG] Make module installable
lmignon Feb 15, 2016
5aaa708
[MIG] Use python standard lib unittest in place of unittest2
lmignon Feb 15, 2016
b214e8a
[MIG] email followers are instance of model 'mail.followers'
lmignon Feb 15, 2016
1aa302b
[MIG] value returned by _company_default_get is a BrowseRecord
lmignon Feb 15, 2016
30f3a3d
[DEL] Remove the old connector worker
lmignon Feb 15, 2016
e04eb06
[PEP8]
lmignon Feb 15, 2016
0b3d8d9
[FIX] In the last release of Odoo related partner created from an ina…
lmignon Feb 15, 2016
70606a9
[FIX] The first version is 9.0.1.0.0
lmignon Feb 15, 2016
0146ddc
[FIX] fix path of odoo for doc build
lmignon Feb 18, 2016
fd24a26
[DEL] Remove deprecated APIs
lmignon Feb 29, 2016
90fde46
remove remnants of workers
sbidoul Mar 3, 2016
f72f36a
enable the jobrunner by default
sbidoul Mar 3, 2016
b1f586c
bump version
sbidoul Mar 3, 2016
492c54d
remove unused import
sbidoul Mar 3, 2016
ea3dfbf
update changelog
sbidoul Mar 3, 2016
fe2bfaa
adapt to upstream api change to obtain db connection
sbidoul Mar 3, 2016
0353793
Bump version number
sbidoul Mar 3, 2016
9239012
Update changelog for 9.0.1.0.2
guewen Mar 3, 2016
4bc8d6a
OCA Transbot updated translations from Transifex
oca-transbot Mar 5, 2016
4989bf4
OCA Transbot updated translations from Transifex
oca-transbot Mar 19, 2016
b05470a
OCA Transbot updated translations from Transifex
oca-transbot Apr 2, 2016
b3c8bc6
OCA Transbot updated translations from Transifex
oca-transbot Apr 23, 2016
76a5fb0
Move connector settings menu to technical
lasley Apr 29, 2016
e3fd073
Fix backend_to_m2o to extract id of the binding
guewen Dec 1, 2015
4756275
[DOC] fix highlight of license
yvaucher Jun 29, 2016
f4604c0
OCA Transbot updated translations from Transifex
oca-transbot Aug 13, 2016
7311430
Add job_uuid in context
YannickB Mar 2, 2016
11de9ba
Added test for job uuid in session context.
nicolas-petit Mar 11, 2016
9ea7ee7
Removing log traces.
nicolas-petit Mar 11, 2016
f007305
[FIX] remove en.po that was erroneously created by transbot
sbidoul Aug 15, 2016
7ce1ffc
OCA Transbot updated translations from Transifex
oca-transbot Aug 20, 2016
54896b3
[FIX] error handling bug
sbidoul Aug 20, 2016
06b6cfa
[DOC] remove mention of v9 crowdfunding
sbidoul Aug 20, 2016
38f61fc
[REF] remove old code that was there for backward compatibility
sbidoul Aug 20, 2016
21f71b0
[ADD] first implementation of channel delay
sbidoul Aug 20, 2016
cadc6c0
[IMP] to be consistent, use the same 'now' concept everywhere
sbidoul Aug 20, 2016
22038c9
[IMP] more precise wakeup at the end of delays between jobs
sbidoul Aug 22, 2016
01a8fd2
rename delay key as throttle
sbidoul Aug 23, 2016
c0e8922
Fix wrong recordset returned when no binding found
guewen Sep 6, 2016
57ccd98
[FIX] connector: Zero value assertion
lasley Sep 14, 2016
d094c81
Remove cancellation of jobs and their active flag
guewen May 24, 2016
5ca2a90
OCA Transbot updated translations from Transifex
oca-transbot Sep 17, 2016
5e96417
Set addons uninstallable
guewen Oct 3, 2016
5c8fdf5
Make the connector addon installable
guewen Oct 3, 2016
d70c7c7
Replace 'select=True' by 'index=True'
guewen Oct 3, 2016
da19826
Rename openerp to odoo in Python files
guewen Oct 3, 2016
26e2da3
Rename xml files with odoo instead of openerp
guewen Oct 3, 2016
dea4594
Rename openerp to odoo in docs
guewen Oct 3, 2016
57be4b9
Replace monkey-patch by a proper inherit
guewen Oct 3, 2016
8575267
Remove usage of @api.one
guewen Oct 3, 2016
1da1b25
Upgrade version number
guewen Oct 4, 2016
00b41d4
Replace ConnectorSession by odoo.Environment
guewen Oct 4, 2016
401ffd5
Merge JobStorage into Job
guewen Oct 4, 2016
99856fa
Extract the queue_job from connector
guewen Oct 4, 2016
fd7a4a9
Remove ConnectorSession
guewen Oct 4, 2016
d6cf1dd
Typo
guewen Oct 4, 2016
d43848e
Remove migration code for a previous odoo version
guewen Oct 4, 2016
179e8c2
Use short license headers
guewen Jan 12, 2017
11fdcdc
Add is_module_installed function
guewen Jan 12, 2017
fc404a9
Rework slighty the default Binder
guewen Jan 12, 2017
f90b0f3
Add a test_connector addon
guewen Jan 12, 2017
bea5582
Start to actualize documentation
guewen Jan 12, 2017
834b50b
Remove 'env' argument from ConnectorEnvironment
guewen Jan 12, 2017
31f8115
Remove application flag, not an application
guewen Jan 12, 2017
872e0bd
str to ustr
leemannd Feb 17, 2017
5b9c4c9
Tentative to build docs
guewen Mar 6, 2017
2d5244f
Remove invalid URL
guewen Mar 9, 2017
edacb95
OCA Transbot updated translations from Transifex
oca-transbot Mar 11, 2017
c4751be
[FIX] mapper: Remove orphan method _map_children
lmignon Jun 8, 2017
f04a2bc
OCA Transbot updated translations from Transifex
oca-transbot Jul 15, 2017
e3cfba5
Start prototype of a component system
guewen Jan 12, 2017
f1b4479
Start to implement the collection system
guewen Jan 12, 2017
e31dc2d
Improve on the collections, work, ...
guewen Jan 15, 2017
2e95a16
Extract 'components' into an individual addon
guewen Jan 15, 2017
8ac23dd
Add test_component
guewen Jan 15, 2017
6fcd428
Start to use 'components' in connector
guewen Feb 27, 2017
3b75785
Add core components in connector
guewen Jun 12, 2017
a0d708b
Add AbstractComponent
guewen Jun 13, 2017
bd79ad6
Remove overrides of attributes
guewen Jun 13, 2017
c48e761
Replace unit_for by components
guewen Jun 13, 2017
e2503b2
Instanciate the component returned by name
guewen Jun 13, 2017
a031bf2
Get rid of MetaMapper
guewen Jun 14, 2017
c7eb8c3
Make unwrap_binding compatible with components
guewen Jun 14, 2017
e3101ec
Use 2 different methods for single/many lookup
guewen Jun 15, 2017
c799001
Add tests for connector mapper
guewen Jun 16, 2017
21ae83a
Add deprecation comments
guewen Jun 16, 2017
620dcb9
Remove some Mapper duplication
guewen Jun 16, 2017
5789f33
Add/move tests for advisory locks
guewen Jun 16, 2017
ecca14e
Update documentation
guewen Jun 17, 2017
fb08b73
Start to write a migration guide
guewen Jun 17, 2017
0a96d2e
Draft new component_event addon
guewen Jun 17, 2017
9926a03
Move test_producer in deprecated
guewen Jun 19, 2017
b64bd13
Continue the migration guide
guewen Jun 19, 2017
c4eec9c
Rewrite some parts of the doc, notably code overview
guewen Jun 19, 2017
2680eb5
Fix test: post_install
guewen Jun 19, 2017
665cfc1
We have now the 3 parts with a new API :)
guewen Jun 20, 2017
c31d549
Add Manager group on partner view connector's tab
guewen Jun 21, 2017
e20a60e
Add @skip_if decorator to skip events
guewen Jun 22, 2017
eb9512e
Change Collection.work_on() to a context manager
guewen Jun 22, 2017
55678c5
Remove required on the version field
guewen Jun 23, 2017
68d4d2d
Simplify tests by loading modules components
guewen Jun 30, 2017
d55f9e2
Add new TestCase classes to test connectors
guewen Jul 4, 2017
3660eb8
Exclude current addon in ComponentRegistryCase setup
guewen Jul 6, 2017
b1d82f3
Add a content index in the migration guide
guewen Jul 10, 2017
353d3be
Checkpoint wizard is too slow
guewen Jul 11, 2017
a1691ce
Add readme files
guewen Jul 11, 2017
849e65a
Bump connector version
guewen Jul 11, 2017
ccf05d7
Add links for versions in doc
guewen Aug 22, 2017
02a7abc
[10.0][FIX] connector : Avoid creating void child values
rousseldenis Sep 20, 2017
aa35870
[MIG] Set modules uninstallable
guewen Oct 3, 2017
5ad2818
Make addons installable
guewen Oct 3, 2017
d3d5e2c
PY3: apply automated changes by 2to3 on addons
guewen Oct 3, 2017
524864b
Remove ConnectorUnit features
guewen Oct 3, 2017
4164b5b
Apply odoo renaming of models or methods in connector
guewen Oct 3, 2017
3251aea
PY3: hashlib.hasher takes bytes
guewen Oct 3, 2017
bab9b7d
Use the conventional module layout
guewen Oct 3, 2017
939d9d1
Fix build of docs
guewen Oct 4, 2017
155dd4d
Build 11.0 docs
guewen Jan 10, 2018
21f593f
Fix connector docs dotted path to models
simahawk Mar 30, 2018
5a634d8
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
d6fd2e8
Translated using Weblate (French)
guewen Jun 27, 2018
cf68dbf
Improve documentation of APIs
guewen Mar 30, 2018
7bebeb8
Add RecordLocker component
guewen Jul 18, 2018
f227434
Translated using Weblate (Portuguese (Brazil))
Aug 3, 2018
9aea42b
Fix documentation build
guewen Nov 6, 2018
3af2f4d
Migrate connector to 12.0
guewen Nov 26, 2018
4e3c075
[IMP] add generic exporter extracted from Magento connector
guewen Oct 9, 2017
b3617fa
Make connector checkpoint compatible in multi company environment
florian-dacosta May 8, 2019
e8c33f1
[IMP] connector: Add Infor and Voicent connectors
max3903 Jul 1, 2019
5ff1f75
Translated using Weblate (Portuguese (Brazil))
Aug 26, 2019
d4d799b
Translated using Weblate (Chinese (Simplified))
liweijie0812 Aug 29, 2019
113e466
Translated using Weblate (Chinese (Simplified))
liweijie0812 Aug 30, 2019
5b12bf2
Translated using Weblate (Chinese (Simplified))
liweijie0812 Sep 1, 2019
99d95c8
Set modules uninstallable
guewen Oct 10, 2019
242773d
[UPD] make the sphinx config version independent
gurneyalex Oct 11, 2019
c7a4a73
[12.0][CHG] connector: Use more permissive licence: AGPL-> LGPL
lmignon Oct 14, 2019
211cd83
[MIG] connector and test_connector: Migration to 13.0
Oct 22, 2019
3b98e92
connector, test_connector: black isort
lmignon Oct 25, 2019
15abdb8
Translated using Weblate (Chinese (Simplified))
liweijie0812 Dec 13, 2019
e9804b2
Translated using Weblate (Portuguese (Brazil))
Mar 21, 2020
cb2a30e
[doc] build 13.0 as main documentation
guewen May 19, 2020
d9c7a8b
[doc] fix links
guewen May 19, 2020
a169705
connector: Delete 12.0 migrations in module 13.0
guewen Jun 17, 2020
5a1ca93
Translated using Weblate (Chinese (Simplified))
liweijie0812 Jul 8, 2020
fa47ff2
[IMP] connector: black, isort, prettier
eantones Oct 16, 2020
b8ae035
[MIG] connector: Migration to 14.0
eantones Oct 16, 2020
32a08cf
Remove connector checkpoints
guewen Mar 26, 2021
e3b9857
[UPD] Update connector.pot
oca-travis Mar 26, 2021
b21db15
[UPD] README.rst
OCA-git-bot Mar 26, 2021
4b748bd
connector: add web_icon to root menu item
ruuter Dec 7, 2020
a22b20b
connector: new app icon
ruuter Dec 7, 2020
fb66700
connector 14.0.1.1.0
OCA-git-bot Aug 16, 2021
ca5ac01
Initialize 15.0 branch
lmignon Nov 25, 2021
c778643
[MIG][15.0] component
i-vyshnevska Dec 2, 2021
2120e52
[UPD] Update connector.pot
Jan 25, 2022
659a2ac
[UPD] README.rst
OCA-git-bot Jan 25, 2022
f50f9db
connector: fix collections.Callable warning
simahawk Apr 13, 2022
897f964
connector 15.0.1.0.1
OCA-git-bot Apr 14, 2022
51c7957
Use built-in callable()
florentx May 5, 2022
f19226b
connector 15.0.1.0.2
OCA-git-bot May 6, 2022
f8879a5
[REF] remove explicit 'object' inheritance
florentx Jan 27, 2022
6dee0e3
[REF] obsolete coding cookie
florentx Feb 2, 2022
f9881ca
[FIX] typos in connector.mapper docstrings
florentx Feb 2, 2022
a307d46
[FIX] connector: restore binder context
danielduqma Sep 9, 2020
466d092
connector 15.0.1.0.3
OCA-git-bot Aug 1, 2022
ec7aa36
[IMP] connector: bump icon style
ivantodorovich Sep 5, 2022
66de2a2
connector 15.0.1.0.4
OCA-git-bot Sep 5, 2022
4260157
Add a test_connector addon
guewen Jan 12, 2017
ca2a458
Remove 'env' argument from ConnectorEnvironment
guewen Jan 12, 2017
dcb7107
OCA Transbot updated translations from Transifex
oca-transbot Mar 11, 2017
91871d8
Start prototype of a component system
guewen Jan 12, 2017
fc551a0
Start to implement the collection system
guewen Jan 12, 2017
4b3ef71
Improve on the collections, work, ...
guewen Jan 15, 2017
9c61979
Add test_component
guewen Jan 15, 2017
deb522c
Fix error messages
guewen Jun 16, 2017
b6a0419
Update test_connector
guewen Jun 16, 2017
e5f70cf
Fix test: post_install
guewen Jun 19, 2017
b05c1aa
Change Collection.work_on() to a context manager
guewen Jun 22, 2017
f2514f1
Add new TestCase classes to test connectors
guewen Jul 4, 2017
7b3d6e5
Add description in test addons to make pylint happier
guewen Aug 15, 2017
1185f39
[MIG] Set modules uninstallable
guewen Oct 3, 2017
7c1c442
Make addons installable
guewen Oct 3, 2017
abbc66c
PY3: apply automated changes by 2to3 on addons
guewen Oct 3, 2017
b9b8328
Remove ConnectorUnit features
guewen Oct 3, 2017
ae7b4cf
Fix some pylint-odoo warnings
guewen Oct 3, 2017
59103ed
OCA Transbot updated translations from Transifex
oca-transbot Jan 6, 2018
f0793da
[MIG] Make modules uninstallable
OCA-git-bot Sep 26, 2018
3de179d
Migrate connector to 12.0
guewen Nov 26, 2018
548e3ad
[UPD] README.rst
OCA-git-bot Jan 14, 2019
d9994aa
[ADD] icon.png
OCA-git-bot Apr 3, 2019
22cb36a
[UPD] Update test_connector.pot
oca-travis Jan 14, 2019
3bd7fc3
Set modules uninstallable
guewen Oct 10, 2019
df295f8
[12.0][CHG] connector: Use more permissive licence: AGPL-> LGPL
lmignon Oct 14, 2019
f28e145
[MIG] connector and test_connector: Migration to 13.0
Oct 22, 2019
51c0e6d
connector, test_connector: black isort
lmignon Oct 25, 2019
d2b4c18
test_connector: fix tests
lmignon Oct 25, 2019
ae3b9c9
[UPD] README.rst
OCA-git-bot Nov 2, 2019
d8ba0c3
[IMP] test_connector: black, isort, prettier
guewen Apr 24, 2021
eaca2b0
[MIG] test_connector: Migration to 14.0
guewen Apr 24, 2021
4cb2a55
[UPD] Update test_connector.pot
oca-travis Apr 28, 2021
a03c041
[UPD] README.rst
OCA-git-bot Apr 28, 2021
b5e2170
Initialize 15.0 branch
lmignon Nov 25, 2021
25af7fb
[MIG][15.0] test_connector
i-vyshnevska Dec 2, 2021
354951d
[UPD] Update test_connector.pot
Jan 25, 2022
cdbe101
[UPD] README.rst
OCA-git-bot Jan 25, 2022
c316d5d
[16.0][MIG] connector + test_connector: Migration to 16.0
asierneiradev Sep 28, 2022
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
164 changes: 164 additions & 0 deletions connector/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
=========
Connector
=========

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/16.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-16-0/connector-16-0-connector
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/102/16.0
:alt: Try me on Runbot

|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_ and Prestashop_, but
also used with Solr, CMIS, ...

.. _Magento: http://odoo-magento-connector.com
.. _Prestashop: https://github.com/OCA/connector-prestashop

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

.. [ The change log. The goal of this file is to help readers
understand changes between version. The primary audience is
end users and integrators. Purely technical changes such as
code refactoring must not be mentioned here.

This file may contain ONE level of section titles, underlined
with the ~ (tilde) character. Other section markers are
forbidden and will likely break the structure of the README.rst
or other documents where this fragment is included. ]

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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/connector/issues/new?body=module:%20connector%0Aversion:%2016.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.

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/16.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": "16.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

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

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

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

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

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