Files
2026-03-31 20:41:04 -04:00

40 lines
1.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">
<record id="woo_sync_failure_notification" model="mail.template">
<field name="name">WooCommerce: Sync Failure Notification</field>
<field name="model_id" ref="model_woo_instance"/>
<field name="subject">WooCommerce Sync Failed: ${object.name}</field>
<field name="body_html"><![CDATA[
<p>Hello,</p>
<p>A WooCommerce sync has failed for the following instance:</p>
<ul>
<li><strong>Instance:</strong> ${object.name}</li>
<li><strong>Sync Type:</strong> ${ctx.get('sync_type', 'Unknown')}</li>
<li><strong>Error:</strong> ${ctx.get('error_message', 'No details available')}</li>
<li><strong>Timestamp:</strong> ${object.last_sync or 'N/A'}</li>
</ul>
<p>Please review your WooCommerce integration settings and resolve the issue.</p>
<p>— Fusion WooCommerce</p>
]]></field>
<field name="auto_delete">True</field>
</record>
<record id="woo_new_order_notification" model="mail.template">
<field name="name">WooCommerce: New Order Notification</field>
<field name="model_id" ref="model_woo_instance"/>
<field name="subject">New WooCommerce Order: ${ctx.get('order_number', '')}</field>
<field name="body_html"><![CDATA[
<p>Hello,</p>
<p>A new WooCommerce order has been received:</p>
<ul>
<li><strong>Order Number:</strong> ${ctx.get('order_number', 'N/A')}</li>
<li><strong>Customer:</strong> ${ctx.get('customer_name', 'N/A')}</li>
<li><strong>Total:</strong> $${ctx.get('order_total', '0.00')}</li>
</ul>
<p>Log in to Odoo to review and process this order.</p>
<p>— Fusion WooCommerce</p>
]]></field>
<field name="auto_delete">True</field>
</record>
</odoo>