mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] pms_l10n_es: add cert to ses calls
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user