Enhancement: option to stop processing further mail rules (#12053)

This commit is contained in:
shamoon
2026-02-13 09:33:29 -08:00
committed by GitHub
parent 728c5ea07b
commit a467df0755
9 changed files with 87 additions and 7 deletions

View File

@@ -301,6 +301,14 @@ class MailRule(document_models.ModelWithOwner):
default=True,
)
stop_processing = models.BooleanField(
_("Stop processing further rules"),
default=False,
help_text=_(
"If True, no further rules will be processed after this one if any document is queued.",
),
)
def __str__(self):
return f"{self.account.name}.{self.name}"