first push message

This commit is contained in:
2026-07-01 14:41:49 +07:00
parent 6667dec2bf
commit 58b5f46cc4
2951 changed files with 316619 additions and 0 deletions
@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Flow 1: Email Verification -->
<record id="mail_template_verify_email" model="mail.template">
<field name="name">SaaS: Verify Your Email</field>
<field name="model_id" ref="model_saas_trial_request"/>
<field name="subject">Confirm your email to activate your 15-day trial</field>
<field name="email_to">{{ object.email }}</field>
<field name="body_html" type="html">
<div style="font-family: Arial, sans-serif;">
<p>Hi <t t-out="object.name"/>,</p>
<p>Thanks for signing up! Please confirm your email to activate your
<strong>15-day free trial</strong>.</p>
<p>
<a t-att-href="'/trial/verify?id=%s&amp;token=%s' % (object.id, object.verification_token)"
style="background:#714B67;color:#fff;padding:10px 18px;border-radius:4px;text-decoration:none;">
Verify Email &amp; Activate Trial
</a>
</p>
</div>
</field>
</record>
<!-- Flow 2: Instance Ready -->
<record id="mail_template_instance_ready" model="mail.template">
<field name="name">SaaS: Your Instance Is Ready</field>
<field name="model_id" ref="model_saas_database"/>
<field name="subject">Your Odoo instance is ready 🎉</field>
<field name="email_to">{{ object.trial_request_id.email }}</field>
<field name="body_html" type="html">
<div style="font-family: Arial, sans-serif;">
<p>Hi <t t-out="object.trial_request_id.name"/>,</p>
<p>Your instance has been provisioned and is ready to use:</p>
<ul>
<li>URL: <a t-att-href="'https://%s' % object.subdomain"><t t-out="object.subdomain"/></a></li>
<li>Login: <t t-out="object.admin_login"/></li>
<li>Temporary Password: <t t-out="object.admin_password"/></li>
</ul>
<p>Please log in and change your password immediately.</p>
</div>
</field>
</record>
<!-- Flow 3: Payment Receipt -->
<record id="mail_template_payment_receipt" model="mail.template">
<field name="name">SaaS: Payment Receipt</field>
<field name="model_id" ref="model_saas_subscription"/>
<field name="subject">Payment received - Full features activated</field>
<field name="email_to">{{ object.trial_request_id.email }}</field>
<field name="body_html" type="html">
<div style="font-family: Arial, sans-serif;">
<p>Hi <t t-out="object.trial_request_id.name"/>,</p>
<p>We've received your payment for the
<strong><t t-out="object.plan_id.name"/></strong> plan.</p>
<p>Your subscription is now active until
<t t-out="object.expiry_date"/>. All premium features have been
activated on your instance.</p>
</div>
</field>
</record>
</odoo>