diff --git a/jikimo_frontend/static/src/scss/custom_style.scss b/jikimo_frontend/static/src/scss/custom_style.scss index d8e2ab85..12e18c1c 100644 --- a/jikimo_frontend/static/src/scss/custom_style.scss +++ b/jikimo_frontend/static/src/scss/custom_style.scss @@ -79,9 +79,9 @@ td.o_required_modifier { } .oe_kanban_card.kanban_color_1 { - background-color: #27FEA9 !important; + background-color: #fff !important; opacity: 0.7; - color: #fff; + color: #777; } .oe_kanban_card.kanban_color_3 { diff --git a/sf_warehouse/models/model.py b/sf_warehouse/models/model.py index a53dae86..bb2e23e5 100644 --- a/sf_warehouse/models/model.py +++ b/sf_warehouse/models/model.py @@ -238,8 +238,8 @@ class ShelfLocation(models.Model): record.storage_time = datetime.datetime.now() if record.location_status == '空闲': record.storage_time = False - else: - pass + if record.location_status == '禁用': + record.storage_time = False name = fields.Char('名称', required=True, size=20) barcode = fields.Char('编码', copy=False, size=15) @@ -309,7 +309,7 @@ class ShelfLocation(models.Model): record.location_status = '占用' else: record.product_id = False - record.location_status = '空闲' + # record.location_status = '空闲' @api.depends('location_type') def _compute_hide_what(self):