What problem does it solve?
Odoo mail template development across v17, v18, and v19 can be complex due to version-specific fields, layout logic, and rendering changes, making templates brittle and hard to maintain.
Core Features & Use Cases
- Supports body_html rendering with QWeb and inline templates, dynamic placeholders, and security checks; handles v17/v18/v19 differences in fields like lang, partner_to, and use_default_to.
- Documents common XML data patterns, mail layout templates, and the mail.template lifecycle from creation to sending via send_mail and generate_email; suitable for CE/EE deployments, automated emails, and canned responses in chatter.
- Integrates with mail.render.mixin for rendering across models, with version-aware hooks and post-processing steps to ensure safe, correct output.
Quick Start
Create a mail.template in your module and test rendering by invoking send_mail on a sample record to verify the output.