From 8371875d625e5c671bd3660ab4c2ba88a9a3073e Mon Sep 17 00:00:00 2001
From: yuxianghui <3437689193@qq.com>
Date: Mon, 11 Dec 2023 15:41:31 +0800
Subject: [PATCH] =?UTF-8?q?=E6=94=BE=E5=BC=80=E6=9C=BA=E5=BA=8A=E6=8D=A2?=
=?UTF-8?q?=E5=88=80=E7=94=B3=E8=AF=B7=E6=A8=A1=E5=9D=97=E8=AE=B0=E5=BD=95?=
=?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=8A=9F=E8=83=BD=E5=88=80=E5=85=B7=E4=BF=A1?=
=?UTF-8?q?=E6=81=AF=E6=97=B6=E6=8D=A2=E5=88=80=E7=94=B3=E8=AF=B7=E6=8C=89?=
=?UTF-8?q?=E9=94=AE=E7=9A=84=E6=9D=83=E9=99=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
sf_tool_management/__init__.py | 3 ---
sf_tool_management/views/tool_base_views.xml | 8 ++++----
2 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/sf_tool_management/__init__.py b/sf_tool_management/__init__.py
index ed3fccb9..6f1b90f1 100644
--- a/sf_tool_management/__init__.py
+++ b/sf_tool_management/__init__.py
@@ -3,9 +3,6 @@ from . import models
from . import wizard
from odoo import api, SUPERUSER_ID
-import logging
-
-_logger = logging.getLogger(__name__)
def _post_install(cr, registry):
diff --git a/sf_tool_management/views/tool_base_views.xml b/sf_tool_management/views/tool_base_views.xml
index 3227b185..0553eb97 100644
--- a/sf_tool_management/views/tool_base_views.xml
+++ b/sf_tool_management/views/tool_base_views.xml
@@ -533,7 +533,7 @@
'default_replacement_extension_length': extension_length,
'default_replacement_effective_length': effective_length,
}"
- attrs="{'invisible': ['|',('status', '!=', '0'), ('functional_tool_name_id', '=', False)]}"
+ attrs="{'invisible': [('status', '!=', '0')]}"
class="btn-primary"
/>