From b029d48f601fd058a21d26ae14e01d284f6f2226 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Fri, 15 Aug 2025 17:53:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- soong_workflow/models/soong_workflow_mixin.py | 2 +- yuthon_purchase/views/purchase_fixed_assets_views.xml | 2 +- yuthon_purchase/views/purchase_low_orders_views.xml | 2 +- yuthon_purchase/views/purchase_service_orders_views.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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 @@ - +