Skip to content

Commit

Permalink
Revert "[ADD] xml and danfe in attachments"
Browse files Browse the repository at this point in the history
This reverts commit 5d35fbd.
  • Loading branch information
corredato committed Jul 25, 2024
1 parent 5d35fbd commit 23ccb38
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions l10n_br_fiscal/models/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,15 +450,7 @@ def send_email(self):
partner_ids = self.partner_id.filtered("edoc_send_email")
partner_ids |= self.partner_id.child_ids.filtered("edoc_send_email")
self.message_subscribe(partner_ids=partner_ids.ids)
attachment_ids = []
if self.authorization_file_id:
attachment_ids.append(self.authorization_file_id.id)
if self.file_report_id:
attachment_ids.append(self.file_report_id.id)

self.message_post_with_template(
template_id=email_template_id.id, attachment_ids=attachment_ids
)
self.message_post_with_template(template_id=email_template_id.id)

def _after_change_state(self, old_state, new_state):
self.ensure_one()
Expand Down

0 comments on commit 23ccb38

Please sign in to comment.