From d8e8babbd3fb927442a1721aca09fd212af60ed0 Mon Sep 17 00:00:00 2001 From: liaodanlong Date: Fri, 21 Feb 2025 10:28:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=8D=95=E8=AF=A6=E6=83=85=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=9B=9E=E9=80=80=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_manufacturing/models/mrp_workorder.py | 8 ++--- sf_manufacturing/views/mrp_workorder_view.xml | 29 ++++++++++++------- 2 files changed, 22 insertions(+), 15 deletions(-) diff --git a/sf_manufacturing/models/mrp_workorder.py b/sf_manufacturing/models/mrp_workorder.py index 1edf529d..dfae3d16 100644 --- a/sf_manufacturing/models/mrp_workorder.py +++ b/sf_manufacturing/models/mrp_workorder.py @@ -178,9 +178,9 @@ class ResMrpWorkOrder(models.Model): [('workorder_id', '=', self.id)]) for check_order in quality_check: if check_order.point_id.is_inspect: - check_order.state = 'waiting' + check_order.quality_state = 'waiting' else: - check_order.state = 'none' + check_order.quality_state = 'none' # move_dest_ids finished_quants = moves.mapped('move_line_ids.lot_id.quant_ids') finished_quants.quantity = 0 @@ -204,9 +204,9 @@ class ResMrpWorkOrder(models.Model): [('workorder_id', '=', self.id)]) for check_order in quality_check: if check_order.point_id.is_inspect: - check_order.state = 'waiting' + check_order.quality_state = 'waiting' else: - check_order.state = 'none' + check_order.quality_state = 'none' def _compute_working_users(self): super()._compute_working_users() diff --git a/sf_manufacturing/views/mrp_workorder_view.xml b/sf_manufacturing/views/mrp_workorder_view.xml index dab95f1b..bd94e9c9 100644 --- a/sf_manufacturing/views/mrp_workorder_view.xml +++ b/sf_manufacturing/views/mrp_workorder_view.xml @@ -61,7 +61,8 @@ -