This commit is contained in:
gsinghpal
2026-05-25 20:11:03 -04:00
parent 67af54b46e
commit 5f372b462a
21 changed files with 444 additions and 833 deletions

View File

@@ -15,12 +15,23 @@
-->
<odoo noupdate="1">
<!-- ===== Mail template ============================================ -->
<!-- ===== Mail template ============================================
email_from is computed at send time (see _fp_resolve_from_header
on res.users) so it ALWAYS matches the active mail server's
from_filter — eliminates the "No mail server matches the
from_filter" warning and the DMARC misalignment that warning
signals. Without this alignment, M365 (nexasystems.ca's host)
greylists cross-provider mail with mismatched From for 515 min
before delivering. Subject dropped the 🔒 emoji — emojis in
subject lines bump M365 spam scoring and slow delivery on
cross-provider mail.
-->
<record id="fp_mail_template_tablet_pin_reset" model="mail.template">
<field name="name">FP: Tablet PIN Reset Code</field>
<field name="model_id" ref="base.model_res_users"/>
<field name="subject">🔒 Your ENTECH tablet temporary PIN: {{ ctx.get('code', '----') }}</field>
<field name="email_from">{{ (object.company_id.email or user.email) }}</field>
<field name="subject">Your ENTECH tablet temporary PIN: {{ ctx.get('code', '----') }}</field>
<field name="email_from">{{ object._fp_resolve_from_header() }}</field>
<field name="reply_to">{{ object._fp_resolve_from_header() }}</field>
<field name="email_to">{{ object.email or object.login }}</field>
<field name="auto_delete" eval="True"/>
<field name="body_html" type="html">