Reference

Settings

APPROVAL_MINIMUM_APPROVERS

Positive integer value, min 0; default: 2

Only settable via plugin settings.

Used to control the rules GenericMinimumApproversRule.

APPROVAL_MAXIMUM_DENIERS

Positive integer value, min 0; default: 1

Only settable via plugin settings.

Used to control the rules GenericMaximumDenierRule.

REMINDER

Positive integer value, min 0; default: 0

Only settable via plugin settings.

Used to control how often outstanding reminders are evaluated (in minutes; 0 == never)

Daily would be 1440 minutes.

Rules

GenericMinimumApproversRule

The minimum number of actors that need to approve an approval request. The rule is evaluated on every change of an approval. If the number of approvers is equal or greater than the configured minimum, the request is automatically approved. This also triggers the approval_approved and approval_finalised signal.

The value is globally controlled by the APPROVAL_MINIMUM_APPROVERS plugin setting.

GenericMaximumDenierRule

The maximum number of actors that need to deny an approval request. The rule is evaluated on every change of an approval. If the number of deniers is equal or greater than the configured maximum, the request is automatically denied. This also triggers the approval_rejected and approval_finalised signals.

The value is globally controlled by the APPROVAL_MAXIMUM_DENIERS plugin setting.

Notifications

Notifications are send to the responsible user/group for an object or the user that is required to take an action.
This plugin uses the default methods configured in InvenTree - by default UI notifications and E-Mail[1].

Available Notifications
Reference Description Template [2] Recipient

ApprovalStarted

Send when an approval for a order was started

email/new_order_assigned

responsible user/group

ApprovalDecisionAdded

Send when an approval decision for a order was added

email/order_approval_decision_added

responsible user/group

ApprovalApproved

Send when an approval for a order was approved

email/approval_decision

responsible user/group

ApprovalRejected

Send when an approval for a order was rejected

email/approval_decision

responsible user/group

ApprovalReminder

Send as a reminder for an approval

email/approval_decision

responsible user/group

ApprovalDecisionRequested

Send when an approval decision was requested

email/approval_decision_requested

requested user


1. Credentials for sending E-Mails needs to be set for the instance
2. Notifications use the Django templating system.