~camptocamp/openerp-connector-magento/7.0-copy-quotation-move-binding

« back to all changes in this revision

Viewing changes to magentoerpconnect/product.py

  • Committer: Guewen Baconnier
  • Date: 2014-06-16 07:15:46 UTC
  • mfrom: (1001.1.1 openerp-connector-magento)
  • Revision ID: guewen.baconnier@camptocamp.com-20140616071546-uya8awuhrr1tgtch
Tags: 2.4.2
Give a hint to the TranslationImporter to allow it to choose the correct Mapper because magento.product.product have 2 potential mappers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
397
397
        """ Hook called at the end of the import """
398
398
        translation_importer = self.get_connector_unit_for_model(
399
399
            TranslationImporter, self.model._name)
400
 
        translation_importer.run(self.magento_id, binding_id)
 
400
        translation_importer.run(self.magento_id, binding_id,
 
401
                                 mapper_class=ProductImportMapper)
401
402
        image_importer = self.get_connector_unit_for_model(
402
403
            CatalogImageImporter, self.model._name)
403
404
        image_importer.run(self.magento_id, binding_id)