Add importer support for VendorItem
this was done mostly for CORE <-> CORE diffs
This commit is contained in:
parent
ef68d4b2d0
commit
f61a0a7dd9
|
@ -65,6 +65,7 @@ class FromCoreToCoreBase(object):
|
||||||
importers['VendorContact'] = VendorContactImporter
|
importers['VendorContact'] = VendorContactImporter
|
||||||
importers['Product'] = ProductImporter
|
importers['Product'] = ProductImporter
|
||||||
importers['ProductFlag'] = ProductFlagImporter
|
importers['ProductFlag'] = ProductFlagImporter
|
||||||
|
importers['VendorItem'] = VendorItemImporter
|
||||||
importers['Employee'] = EmployeeImporter
|
importers['Employee'] = EmployeeImporter
|
||||||
importers['CustData'] = CustDataImporter
|
importers['CustData'] = CustDataImporter
|
||||||
importers['MemberType'] = MemberTypeImporter
|
importers['MemberType'] = MemberTypeImporter
|
||||||
|
@ -137,6 +138,9 @@ class ProductImporter(FromCore, corepos_importing.model.ProductImporter):
|
||||||
class ProductFlagImporter(FromCore, corepos_importing.model.ProductFlagImporter):
|
class ProductFlagImporter(FromCore, corepos_importing.model.ProductFlagImporter):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
class VendorItemImporter(FromCore, corepos_importing.model.VendorItemImporter):
|
||||||
|
pass
|
||||||
|
|
||||||
class EmployeeImporter(FromCore, corepos_importing.model.EmployeeImporter):
|
class EmployeeImporter(FromCore, corepos_importing.model.EmployeeImporter):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
|
@ -118,6 +118,11 @@ class ProductFlagImporter(ToCore):
|
||||||
key = 'bit_number'
|
key = 'bit_number'
|
||||||
|
|
||||||
|
|
||||||
|
class VendorItemImporter(ToCore):
|
||||||
|
model_class = corepos.VendorItem
|
||||||
|
key = ('sku', 'vendor_id')
|
||||||
|
|
||||||
|
|
||||||
class EmployeeImporter(ToCore):
|
class EmployeeImporter(ToCore):
|
||||||
model_class = corepos.Employee
|
model_class = corepos.Employee
|
||||||
key = 'number'
|
key = 'number'
|
||||||
|
|
Loading…
Reference in a new issue