修改货架货位看板颜色

This commit is contained in:
qihao.gong@jikimo.com
2024-01-25 17:36:34 +08:00
parent fc7c66c615
commit 6461e3a423
2 changed files with 5 additions and 5 deletions

View File

@@ -79,9 +79,9 @@ td.o_required_modifier {
} }
.oe_kanban_card.kanban_color_1 { .oe_kanban_card.kanban_color_1 {
background-color: #27FEA9 !important; background-color: #fff !important;
opacity: 0.7; opacity: 0.7;
color: #fff; color: #777;
} }
.oe_kanban_card.kanban_color_3 { .oe_kanban_card.kanban_color_3 {

View File

@@ -238,8 +238,8 @@ class ShelfLocation(models.Model):
record.storage_time = datetime.datetime.now() record.storage_time = datetime.datetime.now()
if record.location_status == '空闲': if record.location_status == '空闲':
record.storage_time = False record.storage_time = False
else: if record.location_status == '禁用':
pass record.storage_time = False
name = fields.Char('名称', required=True, size=20) name = fields.Char('名称', required=True, size=20)
barcode = fields.Char('编码', copy=False, size=15) barcode = fields.Char('编码', copy=False, size=15)
@@ -309,7 +309,7 @@ class ShelfLocation(models.Model):
record.location_status = '占用' record.location_status = '占用'
else: else:
record.product_id = False record.product_id = False
record.location_status = '空闲' # record.location_status = '空闲'
@api.depends('location_type') @api.depends('location_type')
def _compute_hide_what(self): def _compute_hide_what(self):