Merge pull request #31 from tienthienhd/fixbug/delete-warehouse
fix/asign-warehouse
This commit is contained in:
commit
26c16bd6bb
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user