2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 19:20:55 +00:00

Event refactoring

This commit is contained in:
Oliver
2022-01-10 17:28:44 +11:00
parent 886b1f1d72
commit 1243923944
6 changed files with 12 additions and 41 deletions

View File

@ -722,8 +722,8 @@ class StockItem(MPTTModel):
trigger_event(
'stockitem.assignedtocustomer',
item_id=self.id,
customer_id=customer.id,
id=self.id,
customer=customer.id,
)
# Return the reference to the stock item
@ -755,7 +755,7 @@ class StockItem(MPTTModel):
trigger_event(
'stockitem.returnedfromcustomer',
item_id=self.id,
id=self.id,
)
self.save()