1
This commit is contained in:
@@ -500,8 +500,12 @@ class ShelfLocation(models.Model):
|
|||||||
# sf_secret_key = sf_sync_config['sf_secret_key']
|
# sf_secret_key = sf_sync_config['sf_secret_key']
|
||||||
# headers = Common.get_headers(self, token, sf_secret_key)
|
# headers = Common.get_headers(self, token, sf_secret_key)
|
||||||
# strurl = sf_sync_config['sf_url'] + self.crea_url
|
# strurl = sf_sync_config['sf_url'] + self.crea_url
|
||||||
headers = {'Authorization': 'Ba F2CF5DCC-1A00-4234-9E95-65603F70CC8A'}
|
config = self.env['res.config.settings'].get_values()
|
||||||
crea_url = 'https://x24467i973.zicp.fun/AutoDeviceApi/GetLocationInfos'
|
# token = sf_sync_config['token'Ba F2CF5DCC-1A00-4234-9E95-65603F70CC8A]
|
||||||
|
headers = {'Authorization': config['center_control_Authorization']}
|
||||||
|
crea_url = config['center_control_url'] + "/AutoDeviceApi/GetLocationInfos"
|
||||||
|
# headers = {'Authorization': 'Ba F2CF5DCC-1A00-4234-9E95-65603'}
|
||||||
|
# crea_url = 'https://x24467i973.zicp.fun/AutoDeviceApi/GetLocationInfos'
|
||||||
# objs_all = self.env['maintenance.equipment'].search([('id', '=', self.id)])
|
# objs_all = self.env['maintenance.equipment'].search([('id', '=', self.id)])
|
||||||
# machine_tool_list = []
|
# machine_tool_list = []
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user