Source code for odoo.addons.connector_magento.models.magento_backend.importer

# -*- coding: utf-8 -*-
# Copyright 2017 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)

from odoo.addons.component.core import Component


[docs]class MetadataBatchImporter(Component): """ Import the records directly, without delaying the jobs. Import the Magento Websites, Stores, Storeviews They are imported directly because this is a rare and fast operation, and we don't really bother if it blocks the UI during this time. (that's also a mean to rapidly check the connectivity with Magento). """ _name = 'magento.metadata.batch.importer' _inherit = 'magento.direct.batch.importer' _apply_on = [ 'magento.website', 'magento.store', 'magento.storeview', ]