From ca723ffde8a67f32b331d71cdefd792cd4607bc4 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 22 Jul 2021 12:15:26 -0500 Subject: [PATCH] Add email setting for CORE Office -> CORE Lane export --- rattail_corepos/corepos/lane/importing/op/office.py | 1 + rattail_corepos/emails.py | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/rattail_corepos/corepos/lane/importing/op/office.py b/rattail_corepos/corepos/lane/importing/op/office.py index 43756f3..9e96e99 100644 --- a/rattail_corepos/corepos/lane/importing/op/office.py +++ b/rattail_corepos/corepos/lane/importing/op/office.py @@ -60,6 +60,7 @@ class FromCoreOfficeToCoreLane(FromCoreOfficeHandler, ToCoreLaneHandler): Handler for CORE Office -> CORE Lane data export. """ direction = 'export' + dbkey = 'default' @property def local_title(self): diff --git a/rattail_corepos/emails.py b/rattail_corepos/emails.py index 07abf64..ea254df 100644 --- a/rattail_corepos/emails.py +++ b/rattail_corepos/emails.py @@ -27,6 +27,14 @@ Email profiles for Rattail / CORE-POS integration from rattail.emails import ImporterEmail +class core_office_export_lane_op_updates(ImporterEmail): + """ + Sent when a CORE Office -> CORE Lane export involves data changes. + """ + handler_spec = 'rattail_corepos.corepos.lane.importing.op.office:FromCoreOfficeToCoreLane' + abstract = False + + class rattail_import_corepos_api_updates(ImporterEmail): """ Sent when a CORE-POS API -> Rattail import involves data changes.