From 0f2e6b165c9c2bda2993b622d552418c4c7f0d6d Mon Sep 17 00:00:00 2001
From: mgw <1392924357@qq.com>
Date: Fri, 8 Mar 2024 21:46:26 +0800
Subject: [PATCH 1/3] =?UTF-8?q?=E5=9B=A0=E6=8E=A5=E5=8F=A3=E8=A7=A6?=
=?UTF-8?q?=E5=8F=91=E6=8C=89=E9=92=AE=EF=BC=8C=E6=97=A0=E6=B3=95=E8=A7=A6?=
=?UTF-8?q?=E5=8F=91=E6=8C=89=E9=92=AE=E5=88=87=E6=8D=A2=E4=BA=8B=E4=BB=B6?=
=?UTF-8?q?=E3=80=82=E7=BB=8F=E6=B2=9F=E9=80=9A=EF=BC=8C=E6=9A=82=E6=97=B6?=
=?UTF-8?q?=E9=9A=90=E8=97=8F=E6=89=8B=E5=8A=A8=E8=A7=A6=E5=8F=91=E5=BC=80?=
=?UTF-8?q?=E5=A7=8B=E7=AD=89=E6=8C=89=E9=92=AE=E7=9A=84=E5=8A=9F=E8=83=BD?=
=?UTF-8?q?=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../views/mrp_production_addional_change.xml | 19 ++++++++++---------
sf_manufacturing/views/mrp_workorder_view.xml | 13 +++++++------
2 files changed, 17 insertions(+), 15 deletions(-)
diff --git a/sf_manufacturing/views/mrp_production_addional_change.xml b/sf_manufacturing/views/mrp_production_addional_change.xml
index cca86f6e..f3aded39 100644
--- a/sf_manufacturing/views/mrp_production_addional_change.xml
+++ b/sf_manufacturing/views/mrp_production_addional_change.xml
@@ -245,30 +245,31 @@
+
@@ -282,24 +283,24 @@
diff --git a/sf_manufacturing/views/mrp_workorder_view.xml b/sf_manufacturing/views/mrp_workorder_view.xml
index db40cfeb..68f75fe9 100644
--- a/sf_manufacturing/views/mrp_workorder_view.xml
+++ b/sf_manufacturing/views/mrp_workorder_view.xml
@@ -104,21 +104,22 @@
-
+ attrs="{'invisible': ['|', '|','|', ('production_state', 'in', ('draft', 'done', 'cancel')), ('working_state', '=', 'blocked'), ('is_user_working', '=', False), ('routing_type', '=', 'CNC加工')]}"/>
+ attrs="{'invisible': ['|', '|','|', ('production_state', 'in', ('draft', 'done', 'cancel')), ('working_state', '=', 'blocked'), ('is_user_working', '=', False), ('routing_type', '=', 'CNC加工')]}"/>
+ attrs="{'invisible': ['|', '|','|', '|', ('production_state', 'in', ('draft', 'done', 'cancel')), ('working_state', '=', 'blocked'),('user_permissions','=',False),('state','=','done'), ('routing_type', '=', 'CNC加工')]}"/>