1、库位变更接口、库位信息接口优化;2、功能刀具模型from页面按钮样式及显示优化;
This commit is contained in:
@@ -450,10 +450,12 @@ class Manufacturing_Connect(http.Controller):
|
||||
if tool:
|
||||
location_id.product_sn_id = tool.barcode_id.id
|
||||
# 修改功能刀具状态
|
||||
# tool_install_time = {'Nomal': '正常', 'Warning': '报警'}
|
||||
# tool.write({
|
||||
# 'functional_tool_status': tool_install_time.get(item['State'])
|
||||
# })
|
||||
tool_state = {'Nomal': '正常', 'Warning': '报警'}
|
||||
if tool_state.get(item.get('State')):
|
||||
if tool_state.get(item.get('State')) != tool.functional_tool_status:
|
||||
tool.write({
|
||||
'functional_tool_status': tool_state.get(item['State'])
|
||||
})
|
||||
else:
|
||||
location_id.product_sn_id = False
|
||||
logging.info('货架已获取信息:%s' % item)
|
||||
|
||||
Reference in New Issue
Block a user