Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][NEW] Edoc Send Email #3183

Draft
wants to merge 7 commits into
base: 14.0
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[WIP] edoc send email recipients
mileo committed Jan 28, 2025
commit 47908bdc3ace422b79a529683461a466ffa15e17
4 changes: 4 additions & 0 deletions l10n_br_fiscal/models/document.py
Original file line number Diff line number Diff line change
@@ -481,6 +481,10 @@ def _get_email_template(self, state):
def send_email(self, state):
self.ensure_one()
email_template = self._get_email_template(state)

partner_ids = self.partner_id.filtered('edoc_send_email')
partner_ids |= self.partner_id.child_ids.filtered('edoc_send_email')

if email_template:
email_template.with_context(
default_attachment_ids=self._get_mail_attachment()