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

Override 'add_note' when new StockItem is created

- This allows us to prevent the issue of duplicate notes being created
This commit is contained in:
Oliver Walters
2021-05-11 22:51:29 +10:00
parent 0c19a94f5c
commit 84bfffd5a7
2 changed files with 5 additions and 2 deletions

View File

@ -366,7 +366,7 @@ class PurchaseOrder(Order):
purchase_price=purchase_price,
)
stock.save()
stock.save(add_note=False)
tracking_info = {
'status': status,