Use https for namespaces for currency rate from Romanian National Bank

Closes #14986
(grafted from a7bb08629b6172df9e2b249cf15c84ce875f2d85)

--HG--
branch : 7.0
This commit is contained in:
Cédric Krier
2026-08-04 14:34:23 +02:00
parent ca8537d7f5
commit e0759ebd7e
+2 -2
View File
@@ -43,12 +43,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 {