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

[16.0][IMP] account_invoice_mass_sending: Add EDI documents to mass sending email #1876

Draft
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

sergiobstoj
Copy link
Member

Add edi attachments to mass sending email, just like normal sending

@OCA-git-bot
Copy link
Contributor

Hi @jguenat,
some modules you are maintaining are being modified, check this out!

@sergiobstoj sergiobstoj force-pushed the 16.0-imp-mass_sending-edi_docs branch from f09b79c to 2e4c94a Compare January 8, 2025 10:42
attachment_ids = []
if getattr(self, "edi_document_ids", False):
for edi in self.edi_document_ids:
if self._get_edi_attachment(edi.edi_format_id):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you refactor a bit the code?

attachment = self._get_edi_attachment(edi.edi_format_id)
if attachment:
    attachment_ids.append(attachment.id)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thanks.

@sergiobstoj sergiobstoj force-pushed the 16.0-imp-mass_sending-edi_docs branch from 2e4c94a to 425bf0b Compare January 8, 2025 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants