fix/asign-warehouse
This commit is contained in:
parent
061c8812c8
commit
b52dc22eca
@ -67,7 +67,7 @@ export interface MailRule extends ObjectWithPermissions {
|
|||||||
|
|
||||||
assign_document_type?: number // PaperlessDocumentType.id
|
assign_document_type?: number // PaperlessDocumentType.id
|
||||||
|
|
||||||
assign_warehouse?: number // PaperlessWarehouse.id
|
// assign_warehouse?: number // PaperlessWarehouse.id
|
||||||
|
|
||||||
assign_correspondent_from?: MailMetadataCorrespondentOption
|
assign_correspondent_from?: MailMetadataCorrespondentOption
|
||||||
|
|
||||||
|
@ -111,10 +111,6 @@ class WorkflowTriggerPlugin(
|
|||||||
action_overrides.document_type_id = (
|
action_overrides.document_type_id = (
|
||||||
action.assign_document_type.pk
|
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:
|
if action.assign_storage_path is not None:
|
||||||
action_overrides.storage_path_id = (
|
action_overrides.storage_path_id = (
|
||||||
action.assign_storage_path.pk
|
action.assign_storage_path.pk
|
||||||
|
@ -624,9 +624,6 @@ def run_workflow(
|
|||||||
if action.assign_correspondent is not None:
|
if action.assign_correspondent is not None:
|
||||||
document.correspondent = action.assign_correspondent
|
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:
|
if action.assign_document_type is not None:
|
||||||
document.document_type = action.assign_document_type
|
document.document_type = action.assign_document_type
|
||||||
|
|
||||||
@ -650,11 +647,6 @@ def run_workflow(
|
|||||||
if document.document_type is not None
|
if document.document_type is not None
|
||||||
else ""
|
else ""
|
||||||
),
|
),
|
||||||
(
|
|
||||||
document.warehouse.name
|
|
||||||
if document.warehouse is not None
|
|
||||||
else ""
|
|
||||||
),
|
|
||||||
(
|
(
|
||||||
document.owner.username
|
document.owner.username
|
||||||
if document.owner is not None
|
if document.owner is not None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user