Working
vendor payment and email
This commit is contained in:
@@ -1,6 +1,116 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<!-- Intentionally empty for now -->
|
||||
|
||||
<!-- Email template for sending a warranty claim to the vendor -->
|
||||
<record id="mail_template_warranty_claim" model="mail.template">
|
||||
<field name="name">Warranty Claim - Send to Vendor</field>
|
||||
|
||||
<!-- Link this template to the warranty claim model -->
|
||||
<field name="model_id" ref="warranty_claim.model_bec_warranty_claim"/>
|
||||
|
||||
<!-- Subject / sender / recipient -->
|
||||
<field name="subject">Warranty claim ${object.name or ''}</field>
|
||||
<field name="email_from">
|
||||
${(object.company_id.email_formatted or user.email_formatted) or ''}
|
||||
</field>
|
||||
<field name="email_to">
|
||||
${(object.true_vendor_id.email or object.manufacturer_id.email) or ''}
|
||||
</field>
|
||||
<field name="auto_delete" eval="True"/>
|
||||
|
||||
<!-- Body -->
|
||||
<field name="body_html" type="html">
|
||||
<div style="margin: 0px; padding: 0px;">
|
||||
<p style="box-sizing:border-box;margin: 0px; padding: 0px; font-size: 13px;">
|
||||
Dear
|
||||
<t t-out="object.true_vendor_id.name or object.manufacturer_id.name or ''">
|
||||
Vendor Name
|
||||
</t>,
|
||||
<br/><br/>
|
||||
|
||||
Please process a warranty claim / credit for the following:
|
||||
<br/><br/>
|
||||
|
||||
<strong style="box-sizing:border-box;font-weight:bolder;">
|
||||
Warranty Claim:
|
||||
</strong>
|
||||
<t t-out="object.name or ''">WC0001</t><br/>
|
||||
|
||||
<strong style="box-sizing:border-box;font-weight:bolder;">
|
||||
Customer:
|
||||
</strong>
|
||||
<t t-out="object.partner_id.name or ''">Customer Name</t><br/>
|
||||
|
||||
<strong style="box-sizing:border-box;font-weight:bolder;">
|
||||
True Invoice / Order Number:
|
||||
</strong>
|
||||
<t t-out="(object.sale_order_id.name or object.original_sale_order_id.name) or ''">
|
||||
SO0001
|
||||
</t><br/>
|
||||
|
||||
<strong style="box-sizing:border-box;font-weight:bolder;">
|
||||
Warranty Type:
|
||||
</strong>
|
||||
<t t-out="object.warranty_type or ''">90_day</t><br/>
|
||||
<br/>
|
||||
|
||||
<strong style="box-sizing:border-box;font-weight:bolder;">
|
||||
Products and Failures:
|
||||
</strong><br/>
|
||||
</p>
|
||||
|
||||
<ul style="padding:0 0 0 32px;margin:0px 0 16px 0;box-sizing:border-box;list-style-type:disc;">
|
||||
<t t-foreach="object.line_ids" t-as="line">
|
||||
<li>
|
||||
<strong style="box-sizing:border-box;font-weight:bolder;">Part:</strong>
|
||||
<t t-out="line.product_id.default_code or line.product_id.display_name or ''">
|
||||
830037
|
||||
</t>
|
||||
|
|
||||
<strong style="box-sizing:border-box;font-weight:bolder;">Qty:</strong>
|
||||
<t t-out="line.quantity or 1">1</t>
|
||||
<br/>
|
||||
<strong style="box-sizing:border-box;font-weight:bolder;">Model:</strong>
|
||||
<t t-out="line.model or ''">Model</t>
|
||||
|
|
||||
<strong style="box-sizing:border-box;font-weight:bolder;">Serial:</strong>
|
||||
<t t-out="line.serial_number or ''">8939263</t>
|
||||
<br/>
|
||||
<strong style="box-sizing:border-box;font-weight:bolder;">Failure:</strong>
|
||||
<t t-out="line.failure or ''">
|
||||
Does not turn on but spins freely
|
||||
</t>
|
||||
</li>
|
||||
</t>
|
||||
</ul>
|
||||
|
||||
<br/>
|
||||
|
||||
<strong style="box-sizing:border-box;font-weight:bolder;">
|
||||
Date of Install:
|
||||
</strong>
|
||||
<t t-out="object.install_date or ''">04/24/25</t><br/>
|
||||
|
||||
<strong style="box-sizing:border-box;font-weight:bolder;">
|
||||
Date of Failure:
|
||||
</strong>
|
||||
<t t-out="object.failure_date or ''">07/02/25</t><br/>
|
||||
|
||||
<br/>
|
||||
|
||||
<t t-if="not is_html_empty(object.message_partner_ids)">
|
||||
Please reply to this email with your authorization or any further questions.
|
||||
<br/><br/>
|
||||
</t>
|
||||
|
||||
Thank you,<br/>
|
||||
<t t-out="user.name">Your Name</t><br/>
|
||||
<t t-if="user.signature" t-out="user.signature"/>
|
||||
<p style="margin:0px 0 16px 0;box-sizing:border-box;"/>
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user