diff --git a/soong_workflow/models/soong_workflow_mixin.py b/soong_workflow/models/soong_workflow_mixin.py index 18c9d7d4d..e6ee6f196 100644 --- a/soong_workflow/models/soong_workflow_mixin.py +++ b/soong_workflow/models/soong_workflow_mixin.py @@ -437,7 +437,7 @@ class SoongWorkflowMixin(models.AbstractModel): record_obj = self.env["soong.workflow.record"].search([("res_model", "=", rec._name), ("res_id", "=", rec.id)]) record_id = self.env[rec._name].search([('id', '=', rec.id)]) current_user_id = self.env.user.id - if self.state in ['申请人', '拟办']: + if self.state in ['申请人', '拟办', '草稿']: if not record_obj: values = { "code": record_id.code, diff --git a/yuthon_purchase/views/purchase_fixed_assets_views.xml b/yuthon_purchase/views/purchase_fixed_assets_views.xml index 272edaf30..d582f8563 100644 --- a/yuthon_purchase/views/purchase_fixed_assets_views.xml +++ b/yuthon_purchase/views/purchase_fixed_assets_views.xml @@ -74,7 +74,7 @@ - + diff --git a/yuthon_purchase/views/purchase_low_orders_views.xml b/yuthon_purchase/views/purchase_low_orders_views.xml index c51a5a8e9..31453a718 100644 --- a/yuthon_purchase/views/purchase_low_orders_views.xml +++ b/yuthon_purchase/views/purchase_low_orders_views.xml @@ -68,7 +68,7 @@ - + diff --git a/yuthon_purchase/views/purchase_service_orders_views.xml b/yuthon_purchase/views/purchase_service_orders_views.xml index f6f7ad5f4..f6442b743 100644 --- a/yuthon_purchase/views/purchase_service_orders_views.xml +++ b/yuthon_purchase/views/purchase_service_orders_views.xml @@ -89,7 +89,7 @@ - +