Source code for odoo.addons.connector_magento.components.binder

# -*- coding: utf-8 -*-
# © 2013 Guewen Baconnier,Camptocamp SA,Akretion
# © 2016 Sodexis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo.addons.component.core import Component


[docs]class MagentoModelBinder(Component): """ Bind records and give odoo/magento ids correspondence Binding models are models called ``magento.{normal_model}``, like ``magento.res.partner`` or ``magento.product.product``. They are ``_inherits`` of the normal models and contains the Magento ID, the ID of the Magento Backend and the additional fields belonging to the Magento instance. """ _name = 'magento.binder' _inherit = ['base.binder', 'base.magento.connector'] _apply_on = [ 'magento.website', 'magento.store', 'magento.storeview', 'magento.res.partner', 'magento.address', 'magento.res.partner.category', 'magento.product.category', 'magento.product.product', 'magento.stock.picking', 'magento.sale.order', 'magento.sale.order.line', 'magento.account.invoice', ]