Add ability to merge subdepartments

This commit is contained in:
Lance Edgar 2017-01-24 14:59:00 -06:00
parent 0b5a644de1
commit 9ea98bb27b
2 changed files with 33 additions and 3 deletions

View file

@ -2,7 +2,7 @@
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2016 Lance Edgar
# Copyright © 2010-2017 Lance Edgar
#
# This file is part of Rattail.
#
@ -406,6 +406,8 @@ class MasterView(View):
def get_merge_fields(self):
if hasattr(self, 'merge_fields'):
return self.merge_fields
mapper = orm.class_mapper(self.get_model_class())
return mapper.columns.keys()
def get_merge_coalesce_fields(self):
if hasattr(self, 'merge_coalesce_fields'):