This commit is contained in:
shamoon 2024-10-08 22:57:47 -07:00
parent 8f3f6d89c9
commit e7b14ed69f
2 changed files with 2 additions and 6 deletions

View File

@ -59,12 +59,12 @@ class WorkflowTriggerPlugin(
def run(self) -> str | None:
"""
Run matching workflows
Get overrides from matching workflows
"""
overrides, msg = run_workflows(
WorkflowTrigger.WorkflowTriggerType.CONSUMPTION,
self.input_doc,
"paperless_consumer",
None,
DocumentMetadataOverrides(),
)
if overrides:

View File

@ -722,7 +722,6 @@ def run_workflows(
):
overrides.tag_ids.remove(tag.pk)
# correspondent
if not use_overrides and (
action.remove_all_correspondents
or (
@ -746,7 +745,6 @@ def run_workflows(
):
overrides.correspondent_id = None
# document type
if not use_overrides and (
action.remove_all_document_types
or (
@ -770,7 +768,6 @@ def run_workflows(
):
overrides.document_type_id = None
# storage path
if not use_overrides and (
action.remove_all_storage_paths
or (
@ -794,7 +791,6 @@ def run_workflows(
):
overrides.storage_path_id = None
# owner
if not use_overrides and (
action.remove_all_owners
or (