diff --git a/sf_warehouse/models/model.py b/sf_warehouse/models/model.py
index 566bb29b..26b336d1 100644
--- a/sf_warehouse/models/model.py
+++ b/sf_warehouse/models/model.py
@@ -292,6 +292,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)]}"/>
+