mirror of
https://gitlab.com/sonalarora/tra_backend.git
synced 2025-12-26 02:04:08 +02:00
67 lines
2.9 KiB
XML
Executable File
67 lines
2.9 KiB
XML
Executable File
<?xml version="1.0"?>
|
|
<odoo>
|
|
<!--Email template manager request template -->
|
|
|
|
|
|
<record id="purchase_coordinator_template" model="mail.template">
|
|
<field name="name">Purchase Coordinator</field>
|
|
<field name="email_from">${(object.user_id.email and '%s <%s>' % (object.user_id.company_id.name, object.user_id.email) or '')|safe}</field>
|
|
<field name="subject">Purchase Agreements Approve</field>
|
|
<field name="model_id" ref="purchase_requisition.model_purchase_requisition"/>
|
|
<field name="auto_delete" eval="True"/>
|
|
<field name="body_html"><![CDATA[
|
|
|
|
<div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 14px; color: rgb(34, 34, 34); background-color: #FFF;">
|
|
<p>Dear Purchase Coordinator,</p> <br/>
|
|
<p>Please Approve Purchase Agreements bellow link </b> </p>
|
|
|
|
${object.basick_information() | safe}
|
|
${object.line_information() | safe}
|
|
|
|
% set setup_url = object.make_url()
|
|
<br/><br/>
|
|
<a href="${setup_url}" style="background-color: #1abc9c;padding: 20px;text-decoration: none;color: #fff;border-radius: 5px;font-size: 16px;" class="o_default_snippet_text">Approve Purchase Agreements</a>
|
|
<br/><br/>
|
|
</div>
|
|
|
|
]]></field>
|
|
</record>
|
|
|
|
<record id="purchase_manager_template" model="mail.template">
|
|
<field name="name">Purchase Manager</field>
|
|
<field name="email_from">${(object.user_id.email and '%s <%s>' % (object.user_id.company_id.name, object.user_id.email) or '')|safe}</field>
|
|
<field name="subject">Purchase Agreements Approve</field>
|
|
<field name="model_id" ref="purchase_requisition.model_purchase_requisition"/>
|
|
<field name="auto_delete" eval="True"/>
|
|
<field name="body_html"><![CDATA[
|
|
|
|
<div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 14px; color: rgb(34, 34, 34); background-color: #FFF;">
|
|
<p>Dear Managment,</p><br/>
|
|
<p>Please Approve Purchase Agreements bellow link </b> </p>
|
|
|
|
${object.basick_information() | safe}
|
|
${object.line_information() | safe}
|
|
|
|
|
|
% set setup_url = object.make_url()
|
|
<br/><br/>
|
|
<a href="${setup_url}" style="background-color: #1abc9c;padding: 20px;text-decoration: none;color: #fff;border-radius: 5px;font-size: 16px;" class="o_default_snippet_text">Approve Purchase Agreements</a>
|
|
<br/><br/>
|
|
</div>
|
|
|
|
]]></field>
|
|
</record>
|
|
|
|
|
|
|
|
|
|
</odoo>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|