2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-02 19:50:59 +00:00

Adds notification when items are received against a purcahse order (#3259)

This commit is contained in:
Oliver
2022-06-27 07:30:38 +10:00
committed by GitHub
parent b13e12b7bd
commit ad57ca5ddf
3 changed files with 27 additions and 0 deletions

View File

@ -296,6 +296,13 @@ class InvenTreeNotificationBodies:
)
"""Send when a new order (build, sale or purchase) was created."""
ItemsReceived = NotificationBody(
name=_("Items Received"),
slug='purchase_order.items_received',
message=_('Items have been received against a purchase order'),
template='email/purchase_order_received.html',
)
def trigger_notification(obj, category=None, obj_ref='pk', **kwargs):
"""Send out a notification."""