Oerhaul the Vendor import/export between Rattail and CORE
also, add new DB schema specific to this integration, to hold PKs etc.
This commit is contained in:
parent
f9071ac6e9
commit
af1e38aa18
10 changed files with 311 additions and 30 deletions
|
@ -2,7 +2,7 @@
|
|||
################################################################################
|
||||
#
|
||||
# Rattail -- Retail Software Framework
|
||||
# Copyright © 2010-2018 Lance Edgar
|
||||
# Copyright © 2010-2020 Lance Edgar
|
||||
#
|
||||
# This file is part of Rattail.
|
||||
#
|
||||
|
@ -24,8 +24,6 @@
|
|||
Rattail-COREPOS Config Extension
|
||||
"""
|
||||
|
||||
from __future__ import unicode_literals, absolute_import
|
||||
|
||||
from rattail.config import ConfigExtension
|
||||
from rattail.db.config import get_engines
|
||||
|
||||
|
@ -37,8 +35,8 @@ class RattailCOREPOSExtension(ConfigExtension):
|
|||
key = 'rattail-corepos'
|
||||
|
||||
def configure(self, config):
|
||||
from corepos.db import Session as CoreSession
|
||||
from corepos.trans.db import Session as CoreTransSession
|
||||
from corepos.db.office_op import Session as CoreSession
|
||||
from corepos.db.office_trans import Session as CoreTransSession
|
||||
|
||||
engines = get_engines(config, section='corepos.db.office_op')
|
||||
config.corepos_engines = engines
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue