Fix how "unknown product" row is added to receiving batch

This commit is contained in:
Lance Edgar 2018-06-28 12:27:40 -05:00
parent 8d0dfd631b
commit 2ffb930f7f

View file

@ -642,8 +642,7 @@ class ReceivingBatchView(PurchasingBatchView):
row = model.PurchaseBatchRow()
row.upc = provided # TODO: why not checked? how to know?
row.description = "(unknown product)"
batch.add_row(row)
self.handler.refresh_row(row)
self.handler.add_row(batch, row)
self.handler.refresh_batch_status(batch)
self.Session.flush()