2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 20:15:44 +00:00

Unit test fixes

This commit is contained in:
Oliver Walters
2021-05-11 22:26:03 +10:00
parent a1203aa1e5
commit 93e6eb6dc7
4 changed files with 28 additions and 17 deletions

View File

@ -370,13 +370,13 @@ class PurchaseOrder(Order):
tracking_info = {
'status': status,
'purchaseorder': self.pk,
}
stock.add_tracking_entry(
StockHistoryCode.RECEIVED_AGAINST_PURCHASE_ORDER,
user,
notes=notes,
url=self.get_absolute_url(),
deltas=tracking_info,
location=location,
purchaseorder=self,