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

[18.0][ADD] new module: mail_template_conditional_report #1534

Open
wants to merge 1 commit into
base: 18.0
Choose a base branch
from

Conversation

acsonefho
Copy link
Contributor

This module is used to add condition (domain) on dynamic reports during generation of mail.template.
When the mail is generated (based on the mail template), all dynamic attachments are generated (by standard Odoo) then the domain is applied (based on the record) to know if the attachment should be dropped or not.

Technically, the existing relation between mail.template and ir.actions.report (report) is kept. This module create a real Odoo's model on this relation.

This module is used to add condition (domain) on dynamic reports during generation of mail.template.
When the mail is generated (based on the mail template), all dynamic attachments are generated (by standard Odoo) then the domain is applied (based on the record) to know if the attachment should be dropped or not.
@acsonefho acsonefho force-pushed the 18.0-mail_template_conditional_report branch from 3c6e044 to 9e95147 Compare January 3, 2025 07:16
@sbidoul
Copy link
Member

sbidoul commented Jan 15, 2025

Can you add a CONTEXT.md fragment explaining in which situations this module could be useful (typical use cases, etc)?

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.

2 participants