Skip to content

Commit

Permalink
[REF] View and Make PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
mileo committed Apr 18, 2021
1 parent 8771190 commit 3d2d227
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions l10n_br_fiscal/models/document_eletronic.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,5 +190,10 @@ def view_xml(self):
xml_file = self.file_xml_autorizacao_id or self.file_xml_id
return self._target_new_tab(xml_file)

def make_pdf(self):
pass

def view_pdf(self):
if not self.file_pdf_id:
self.make_pdf()
return self._target_new_tab(self.file_pdf_id)

0 comments on commit 3d2d227

Please sign in to comment.