Rename model for custdata
to CustomerClassic
This commit is contained in:
parent
a6541a2c32
commit
9c15952386
9 changed files with 27 additions and 27 deletions
|
@ -2,7 +2,7 @@
|
|||
################################################################################
|
||||
#
|
||||
# Rattail -- Retail Software Framework
|
||||
# Copyright © 2010-2021 Lance Edgar
|
||||
# Copyright © 2010-2023 Lance Edgar
|
||||
#
|
||||
# This file is part of Rattail.
|
||||
#
|
||||
|
@ -47,6 +47,6 @@ class ProductImporter(ToCore):
|
|||
key = 'id'
|
||||
|
||||
|
||||
class CustDataImporter(ToCore):
|
||||
model_class = corepos.CustData
|
||||
class CustomerClassicImporter(ToCore):
|
||||
model_class = corepos.CustomerClassic
|
||||
key = 'id'
|
||||
|
|
|
@ -78,7 +78,7 @@ class FromCoreOfficeToCoreLane(FromCoreOfficeHandler, ToCoreLaneHandler):
|
|||
importers = OrderedDict()
|
||||
importers['Department'] = DepartmentImporter
|
||||
importers['Product'] = ProductImporter
|
||||
importers['CustData'] = CustDataImporter
|
||||
importers['CustomerClassic'] = CustomerClassicImporter
|
||||
return importers
|
||||
|
||||
|
||||
|
@ -191,8 +191,8 @@ class ProductImporter(FromCore, corepos_importing.model.ProductImporter):
|
|||
return data
|
||||
|
||||
|
||||
class CustDataImporter(FromCore, corepos_importing.model.CustDataImporter):
|
||||
host_model_class = coreoffice.CustData
|
||||
class CustomerClassicImporter(FromCore, corepos_importing.model.CustomerClassicImporter):
|
||||
host_model_class = coreoffice.CustomerClassic
|
||||
|
||||
# these fields are held in common, between Office and Lane tables
|
||||
common_fields = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue