From 642a93c4493f0137780de93941d5bf9a1b41750d Mon Sep 17 00:00:00 2001
From: mgw <1392924357@qq.com>
Date: Tue, 30 Jan 2024 09:48:14 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=B4=A7=E4=BD=8D=E9=A2=9C?=
=?UTF-8?q?=E8=89=B2=E5=8F=8A=E5=90=AF=E7=94=A8=E8=B4=A7=E4=BD=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
sf_warehouse/models/model.py | 4 ++++
sf_warehouse/static/src/css/kanban_color_change.scss | 2 +-
sf_warehouse/views/shelf_location.xml | 2 ++
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/sf_warehouse/models/model.py b/sf_warehouse/models/model.py
index 978a3b93..9fab89e1 100644
--- a/sf_warehouse/models/model.py
+++ b/sf_warehouse/models/model.py
@@ -291,6 +291,10 @@ class ShelfLocation(models.Model):
def action_location_status_disable(self):
self.location_status = '禁用'
+ # 修改货位状态为空闲
+ def action_location_status_enable(self):
+ self.location_status = '空闲'
+
@api.onchange('shelf_location_id')
def _onchange_shelf_location_id(self):
"""
diff --git a/sf_warehouse/static/src/css/kanban_color_change.scss b/sf_warehouse/static/src/css/kanban_color_change.scss
index c532bf96..aeb75150 100644
--- a/sf_warehouse/static/src/css/kanban_color_change.scss
+++ b/sf_warehouse/static/src/css/kanban_color_change.scss
@@ -52,7 +52,7 @@
}
.green {
- background-color: #27FEA9 !important;
+ background-color: #fff !important;
border: 1px solid #ccc;
}
diff --git a/sf_warehouse/views/shelf_location.xml b/sf_warehouse/views/shelf_location.xml
index 3bf6df80..ad72f2c3 100644
--- a/sf_warehouse/views/shelf_location.xml
+++ b/sf_warehouse/views/shelf_location.xml
@@ -60,6 +60,8 @@
attrs="{'invisible': [('hide_shelf', '=', False)]}"/>
+