Skip to content

Commit

Permalink
[FIX] l10n_br_fiscal: regerar o pdf quando não houver arquivo de auto…
Browse files Browse the repository at this point in the history
…rização

Na NFSE isto foi necessário. Na NFe não foi confirmado se da forma anterior o pdf era regerado quando o mesmo estivesse novamente me digitação.
  • Loading branch information
marcelsavegnago committed Sep 14, 2021
1 parent 41dc26e commit 173e75f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion l10n_br_fiscal/models/document_eletronic.py
Expand Up @@ -217,7 +217,7 @@ def make_pdf(self):

def view_pdf(self):
self.ensure_one()
if not self.file_report_id:
if not self.file_report_id or not self.authorization_file_id:
self.make_pdf()
if not self.file_report_id:
raise UserError(_("No PDF file generated!"))
Expand Down

0 comments on commit 173e75f

Please sign in to comment.