修改获取库区接口
This commit is contained in:
@@ -383,6 +383,10 @@ class ShelfLocation(models.Model):
|
||||
if record.product_sn_id:
|
||||
record.sudo().product_id = record.product_sn_id.product_id
|
||||
record.sudo().location_status = '占用'
|
||||
|
||||
else:
|
||||
if record.production_id:
|
||||
record.location_status = '占用'
|
||||
else:
|
||||
record.product_id = False
|
||||
record.location_status = '空闲'
|
||||
|
||||
Reference in New Issue
Block a user