Skip to content
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.

Commit

Permalink
[FIX][12.0] l10n_it_vat_statement_communication file export
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiocorato authored and eLBati committed May 7, 2021
1 parent d15b572 commit 39c318a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions l10n_it_vat_statement_communication/wizard/export_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def export(self):
for comunicazione in self.env["comunicazione.liquidazione"].browse(
comunicazione_ids
):
out = base64.encodestring(comunicazione.get_export_xml())
wizard.file_export = out
out = base64.encodebytes(comunicazione.get_export_xml())
wizard.sudo().file_export = out
wizard.name = "{}_LI_{}.xml".format(
comunicazione.declarant_fiscalcode,
str(comunicazione.identificativo).rjust(5, "0"),
Expand Down

0 comments on commit 39c318a

Please sign in to comment.