Use https for namespaces for currency rate from Romanian National Bank

Closes #14986
(grafted from a7bb08629b6172df9e2b249cf15c84ce875f2d85)

--HG--
branch : 8.0
This commit is contained in:
Cédric Krier
2026-08-04 14:34:23 +02:00
parent 16634b1d01
commit 301a3b3841
+2 -2
View File
@@ -44,12 +44,12 @@ class Cron(metaclass=PoolMeta):
origin, = tree.xpath(
'//x:Body/x:OrigCurrency',
namespaces={'x': 'http://www.bnr.ro/xsd'})
namespaces={'x': 'https://www.bnr.ro/xsd'})
assert origin.text == self.currency.code
cubes = tree.xpath(
'//x:Body/x:Cube[@date="%s"]' % date.isoformat(),
namespaces={'x': 'http://www.bnr.ro/xsd'})
namespaces={'x': 'https://www.bnr.ro/xsd'})
if cubes:
cube, = cubes
return {