[IMP] pms_l10n_es: add cert to ses calls

This commit is contained in:
miguelpadin
2024-06-10 11:27:05 +01:00
parent 1fe96b5c2e
commit e2fcdaa4c3
2 changed files with 6 additions and 3 deletions

View File

@@ -30,7 +30,6 @@
"data": [
"data/res.country.state.csv",
"data/pms.ine.tourism.type.category.csv",
# "data/pms.ine.zip.municipality.ine.relation.csv",
"data/cron_jobs.xml",
"data/pms_data.xml",
"data/queue_data.xml",

View File

@@ -1027,7 +1027,9 @@ class TravellerReport(models.TransientModel):
communication.reservation_id.pms_property_id.ses_url,
headers=_get_auth_headers(communication),
data=payload,
verify=False,
verify=get_module_resource(
"pms_l10n_es", "static", "PRE_SGSICS.SES.MIR.ES.cer"
),
)
root = ET.fromstring(soap_response.text)
communication.sending_result = root.find(".//descripcion").text
@@ -1075,7 +1077,9 @@ class TravellerReport(models.TransientModel):
communication.reservation_id.pms_property_id.ses_url,
headers=_get_auth_headers(communication),
data=payload,
verify=False,
verify=get_module_resource(
"pms_l10n_es", "static", "PRE_SGSICS.SES.MIR.ES.cer"
),
)
root = ET.fromstring(soap_response.text)
communication.response_communication_soap = soap_response.text