Skip to content

Commit

Permalink
l10n_fr_intrastat_service: code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
alexis-via committed Jan 19, 2024
1 parent acf0c9e commit a3dc890
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions l10n_fr_intrastat_service/models/intrastat_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,7 @@ def generate_xml(self):
if not self.declaration_line_ids:
return
root = self._generate_des_xml_root()
objectify.deannotate(root, xsi_nil=True)
etree.cleanup_namespaces(root)
objectify.deannotate(root, xsi_nil=True, cleanup_namespaces=True)
xml_bytes = etree.tostring(
root, pretty_print=True, encoding="UTF-8", xml_declaration=True
)
Expand Down

0 comments on commit a3dc890

Please sign in to comment.