Skip to content

Conversation

@acsonefho
Copy link

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.

@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)?

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 9e95147 to 924e874 Compare January 20, 2025 12:43
@pedrobaeza
Copy link
Member

This should go to the new repository OCA/mail.

@acsonefho
Copy link
Author

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.

Thanks! I replace this pr by: OCA/mail#40

@acsonefho acsonefho closed this Mar 12, 2025
@acsonefho acsonefho deleted the 18.0-mail_template_conditional_report branch March 12, 2025 08:39
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