2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 12:35:46 +00:00

Translations for stock transaction notes

This commit is contained in:
Oliver Walters
2021-01-29 12:23:22 +11:00
parent 282ed0c637
commit 4ef6a6dc62
2 changed files with 39 additions and 21 deletions

View File

@ -343,11 +343,11 @@ class PurchaseOrder(Order):
stock.save()
text = _("Received items")
note = f"{_('Received')} {quantity} {_('items against order')} {str(self)}"
# Add a new transaction note to the newly created stock item
stock.addTransactionNote("Received items", user, "Received {q} items against order '{po}'".format(
q=quantity,
po=str(self))
)
stock.addTransactionNote(text, user, note)
# Update the number of parts received against the particular line item
line.received += quantity