1、优化中控接口14-16

This commit is contained in:
yuxianghui
2024-02-23 17:29:04 +08:00
parent 475b45b293
commit db48ef396e
8 changed files with 98 additions and 96 deletions

View File

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