From 91c5a087fb8f672f1625e32063db6ece65879ff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 14 Jan 2026 14:39:08 +0100 Subject: [PATCH] Use root prefix to retrieve the namespace of UBL document Closes #14490 --- modules/edocument_ubl/edocument.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/edocument_ubl/edocument.py b/modules/edocument_ubl/edocument.py index 4c7e603003..e949c62eb6 100644 --- a/modules/edocument_ubl/edocument.py +++ b/modules/edocument_ubl/edocument.py @@ -200,7 +200,7 @@ class Invoice(Model): tree = etree.parse(BytesIO(document)) root = tree.getroot() - namespace = root.nsmap.get(None) + namespace = root.nsmap.get(root.prefix) invoice, attachments = cls.parser(namespace)(root) invoice.save() invoice.update_taxes()