优化货位颜色及启用货位

This commit is contained in:
mgw
2024-01-30 09:48:14 +08:00
parent 1c0187d55b
commit 642a93c449
3 changed files with 7 additions and 1 deletions

View File

@@ -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):
"""