~jan-philipp-fischer/openerp-connector-magento/7.0-strip-html

« back to all changes in this revision

Viewing changes to magentoerpconnect/partner.py

[CHG] Changes calls to Mapper according to the new API of the Mappers.

See branch: https://code.launchpad.net/~openerp-connector-core-editors/openerp-connector/7.0-connector-mapper-refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
451
451
                    # and use the name of the company for the name
452
452
                    company_mapper = get_unit(CompanyImportMapper,
453
453
                                              'magento.res.partner')
454
 
                    company_mapper.convert(magento_record)
 
454
                    map_record = company_mapper.map_record(magento_record)
455
455
                    self.session.write('magento.res.partner',
456
456
                                       partner_binding_id,
457
 
                                       company_mapper.data)
 
457
                                       map_record.values())
458
458
                else:
459
459
                    # for B2C individual customers, merge with the main
460
460
                    # partner