fix/asign-warehouse

This commit is contained in:
hungdztrau123 2024-06-03 14:02:59 +07:00
parent 061c8812c8
commit b52dc22eca
3 changed files with 1 additions and 13 deletions

View File

@ -67,7 +67,7 @@ export interface MailRule extends ObjectWithPermissions {
assign_document_type?: number // PaperlessDocumentType.id
assign_warehouse?: number // PaperlessWarehouse.id
// assign_warehouse?: number // PaperlessWarehouse.id
assign_correspondent_from?: MailMetadataCorrespondentOption

View File

@ -111,10 +111,6 @@ class WorkflowTriggerPlugin(
action_overrides.document_type_id = (
action.assign_document_type.pk
)
if action.assign_warehouse is not None:
action_overrides.warehouse_id = (
action.assign_warehouse.pk
)
if action.assign_storage_path is not None:
action_overrides.storage_path_id = (
action.assign_storage_path.pk

View File

@ -624,9 +624,6 @@ def run_workflow(
if action.assign_correspondent is not None:
document.correspondent = action.assign_correspondent
if action.assign_warehouse is not None:
document.warehouse = action.assign_warehouse
if action.assign_document_type is not None:
document.document_type = action.assign_document_type
@ -650,11 +647,6 @@ def run_workflow(
if document.document_type is not None
else ""
),
(
document.warehouse.name
if document.warehouse is not None
else ""
),
(
document.owner.username
if document.owner is not None