You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a perfectly valid invoice may contain for instance <IncludedNote><Content/></IncludedNote>. Container.add fails in this case as root.text is None. The following solves this issue:
--- models/container.py.orig 2024-12-11 10:20:20.833947854 +0100+++ models/container.py 2024-12-11 10:20:24.930598120 +0100@@ -91,4 +91,5 @@
el._text = child
def add_from_etree(self, root):
- self.add(root.text)+ if (_text := root.text) is not None:+ self.add(_text)
The text was updated successfully, but these errors were encountered:
Hi,
a perfectly valid invoice may contain for instance
<IncludedNote><Content/></IncludedNote>
.Container.add
fails in this case asroot.text
isNone
. The following solves this issue:The text was updated successfully, but these errors were encountered: