1、优化中控接口14-16
This commit is contained in:
@@ -386,7 +386,7 @@ class ShelfLocation(models.Model):
|
||||
record.product_id = False
|
||||
record.location_status = '空闲'
|
||||
|
||||
#调取获取货位信息接口
|
||||
# 调取获取货位信息接口
|
||||
def get_sf_shelf_location_info(self):
|
||||
# sf_sync_config = self.env['res.config.settings'].get_values()
|
||||
# token = sf_sync_config['token']
|
||||
@@ -398,7 +398,7 @@ class ShelfLocation(models.Model):
|
||||
# objs_all = self.env['maintenance.equipment'].search([('id', '=', self.id)])
|
||||
# machine_tool_list = []
|
||||
params = {'DeviceId': 'Cabinet-AL'}
|
||||
r = requests.get(crea_url, params=params,headers=headers)
|
||||
r = requests.get(crea_url, params=params, headers=headers)
|
||||
ret = r.json()
|
||||
print(ret)
|
||||
if ret['Succeed'] == True:
|
||||
|
||||
Reference in New Issue
Block a user