~initos.com/openerp-connector-magento/7.0-import_customer_lang

« back to all changes in this revision

Viewing changes to magentoerpconnect/magento_model.py

  • Committer: Katja Matthes
  • Date: 2014-06-23 09:47:03 UTC
  • Revision ID: katja.matthes@initos.com-20140623094703-pnw2mpbbcebp4dqe
map language of storeview to default language of backend, fix language for addresses from sale order import

Show diffs side-by-side

added added

removed removed

Lines of Context:
655
655
        binding_id = binder.to_openerp(record['group_id'])
656
656
        return {'store_id': binding_id}
657
657
 
 
658
    @mapping
 
659
    def lang(self, record):
 
660
        if self.backend_record.default_lang_id:
 
661
            return {'lang_id': self.backend_record.default_lang_id.id}
 
662
 
658
663
 
659
664
@magento
660
665
class StoreImport(MagentoImportSynchronizer):