Base Connector
This module is a base for the general e-commerce connector and other connectors of the sygel’s ecosystem.
It allows to create, read and update res.partners from an external webservice that connects Odoo.
It also provides additional feature as configuration records, logs, master data mappings, etc. All those features are used from the rest of sygel connector modules.
Table of contents
Configuration
Enable the connector on the company: Go to Settings > Companies > [your company], open the Ecommerce Connector tab and activate the checkbox Accept Ecommerce Connector.
Create a Connection: Go to Ecommerce Connector > Connection and create a new record:
Name: a descriptive label (e.g. “Shop”)
Ecommerce ID: a unique numeric identifier agreed with the e-commerce platform
Company: the Odoo company that will own the imported orders
Language: language used for multilanguage fields
Configure search rules: Define how records are matched:
Products: Ecommerce ID, SKU or Barcode
Contacts: Ecommerce ID, Email, VAT or Contact Info
Addresses: Ecommerce ID, Email or Contact Info
For more information, check the operations manual provided by Sygel.
Usage
Once configured, the connector is ready to receive requests.
You can monitor calls going to Ecommerce Connector > Connector Calls. Each call has a status: Draft, Done or Error. The default view shows Draft and Error records for quick daily monitoring.
You can review mappings between Odoo and ecommerce records going to Ecommerce Connector > Ecommerce Mappings. You have menu options for Product Variants, Product Templates and Partner
You can also test this connector using the postman examples provided in the postman_examples folder
For more information, check the operations manual provided by Sygel.
Known issues / Roadmap
Since V18, the sale_invoice_policy functionality ahs been moved to the ecommerce_connector_sale_invoice_policy module. If you are migrating from older versions, you should also install this module.
Future improvements detected for this module. They should be done in the next migrations to upper versions:
Cleanup and encapsulation of duplicated code. To do if the module is refactored in upper versions.
Simplify the error handling pattern. The error list is being continously propagated and checked through all the code. Operations are not aborted if an error is detected.
Reduce code of main file. Move functions to other files (not necessary orm models)
Simplify _get_contact_domain() function
Simplify _get_shipping_contact() function
Simplify _get_invoice_contact() function
Move every values dict creation to a function for that. Review functions: _create_new_product(), _create_new_product_template(), _create_payments()
Move every complex domain creation to a function for that. Review functions: _find_product()
Refactor fiscal position and taxes calculation. Documentate its behaviour
Refactor and simplify mandatory_fields checks. Required fields could be defined in a data structure.
Refactor and simplify the _create_response() function
Refactor and simplify the external_create_sale() function
Refactor and simplify the external_create_credit_note() function
Review the record matching methods between systems. Linking local and external delivery.carrier and account.payment.mode by name (translated) would probably need a change
Improve documentation
Improve postman collection examples
Add help tooltips to configuration fields
Add more unit tests
Move account_fiscal_position_partner_type dependency to a glue module
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 feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Contributors
-
Alberto Martínez
Manuel Regidor
Valentin Vinagre
Harald Panten
Maintainers
This module is part of the sygel-technology/sy-general-connector project on GitHub.
You are welcome to contribute.
Metadata
Release files for odoo-addon-base-connector 18.0.1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| odoo_addon_base_connector-18.0.1.1.0-py3-none-any.whl | Python 3 | none | any | Details for odoo_addon_base_connector-18.0.1.1.0-py3-none-any.whl |
Release files / odoo_addon_base_connector-18.0.1.1.0-py3-none-any.whl
| Download URL | odoo_addon_base_connector-18.0.1.1.0-py3-none-any.whl |
|---|---|
| Size | 91.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e55e4e465e8d944f8b4d31e9780e50823f82b1c5f2a76694664df8203c1a6523
|
|
BLAKE2b-256 checksum How to use checksums |
6c3d67ab54bbbc0e4014b242091768a7d2f5df30cca5ae1bf8c7f3a4ad9cd5f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for odoo-addon-base-connector 18.0.1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.