diff --git a/tailbone/views/purchases/batch.py b/tailbone/views/purchases/batch.py index 6282d519..7d8db1d1 100644 --- a/tailbone/views/purchases/batch.py +++ b/tailbone/views/purchases/batch.py @@ -253,6 +253,8 @@ class PurchaseBatchView(BatchMasterView): View for editing a purchase batch as an order form. """ batch = self.get_instance() + if batch.executed: + return self.redirect(self.get_action_url('view', batch)) vendor = batch.vendor costs = Session.query(model.ProductCost)\ .join(model.Product)\