Remove references to deprecated batch handler methods
This commit is contained in:
parent
cb39ca7970
commit
242bcd7603
3 changed files with 5 additions and 5 deletions
|
@ -943,8 +943,8 @@ class PurchaseBatchView(BatchMasterView):
|
|||
batch.created_by = self.request.user
|
||||
kwargs = self.get_batch_kwargs(batch, mobile=True)
|
||||
batch = self.handler.make_batch(self.Session(), **kwargs)
|
||||
if self.handler.requires_prefill(batch):
|
||||
self.handler.make_initial_rows(batch)
|
||||
if self.handler.should_populate(batch):
|
||||
self.handler.populate(batch)
|
||||
self.request.session.flash("Created new purchasing batch: {}".format(batch))
|
||||
# TODO: redirect to mobile receiving view etc. instead
|
||||
return self.redirect(self.request.route_url('purchases.batch.mobile_create'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue