Skip to content

Commit

Permalink
Merge PR #1858 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by renatonlima
  • Loading branch information
OCA-git-bot committed Apr 4, 2022
2 parents 62de7f8 + 5df8a85 commit 32f0541
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions l10n_br_fiscal/models/document_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,12 @@ def _document_number(self):

def _document_confirm(self):
if self.issuer == DOCUMENT_ISSUER_COMPANY:
if not self.comment_ids and self.fiscal_operation_id.comment_ids:
self.comment_ids |= self.fiscal_operation_id.comment_ids

for line in self.fiscal_line_ids:
if not line.comment_ids and line.fiscal_operation_line_id.comment_ids:
line.comment_ids |= line.fiscal_operation_line_id.comment_ids
self._change_state(SITUACAO_EDOC_A_ENVIAR)

def action_document_confirm(self):
Expand Down

0 comments on commit 32f0541

Please sign in to comment.