Stop setting execution details when multiple batches executed
that's now the handler's job
This commit is contained in:
parent
dd22c04573
commit
46d0e96321
|
@ -2,7 +2,7 @@
|
|||
################################################################################
|
||||
#
|
||||
# Rattail -- Retail Software Framework
|
||||
# Copyright © 2010-2017 Lance Edgar
|
||||
# Copyright © 2010-2018 Lance Edgar
|
||||
#
|
||||
# This file is part of Rattail.
|
||||
#
|
||||
|
@ -887,10 +887,6 @@ class BatchMasterView(MasterView):
|
|||
# If no error, check result flag (false means user canceled).
|
||||
else:
|
||||
if result:
|
||||
now = datetime.datetime.utcnow()
|
||||
for batch in batches:
|
||||
batch.executed = now
|
||||
batch.executed_by = user
|
||||
session.commit()
|
||||
# TODO: this doesn't always work...?
|
||||
self.request.session.flash("{} {} were executed".format(
|
||||
|
|
Loading…
Reference in a new issue