Skip to main content

Components

Project description

License: LGPL-3

Components

This module implements a component system and is a base block for the Connector Framework. It can be used without using the full Connector though.

Documentation: http://odoo-connector.com/

Installation

  • Install component

Configuration

The module does nothing by itself and has no configuration.

Usage

As a developer, you have access to a component system. You can find the documentation in the code or on http://odoo-connector.com

In a nutshell, you can create components:

from odoo.addons.component.core import Component

class MagentoPartnerAdapter(Component):
    _name = 'magento.partner.adapter'
    _inherit = 'magento.adapter'

    _usage = 'backend.adapter'
    _collection = 'magento.backend'
    _apply_on = ['res.partner']

And later, find the component you need at runtime (dynamic dispatch at component level):

def run(self, external_id):
    backend_adapter = self.component(usage='backend.adapter')
    external_data = backend_adapter.read(external_id)

Known issues / Roadmap

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 smash it by providing detailed and welcomed feedback.

Credits

Images

  • Odoo Community Association: Icon.

Contributors

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

Maintainer

Odoo Community Association

This module is maintained by the OCA.

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.

To contribute to this module, please visit https://odoo-community.org.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

odoo11_addon_component-11.0.1.2.0-py2.py3-none-any.whl (49.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file odoo11_addon_component-11.0.1.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: odoo11_addon_component-11.0.1.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 49.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/57.4.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.5

File hashes

Hashes for odoo11_addon_component-11.0.1.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ec33538bb0168bd036187922a2c41e1fa20303421dc023909b9d9b463ed2c3b8
MD5 2d675f34fd6fa8874e59fd7800baff65
BLAKE2b-256 f5a1c20f0f2abade234310286739d699ca1df2d6f79961b8918eb76e76e42c81

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page