You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

76 lines
2.9 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Email Template-->
<record id="announcement_email_template" model="mail.template">
<field name="name">Announcements:Email Template</field>
<field name="model_id"
ref="all_in_one_announcements.model_res_config_settings"/>
<field name="body_html" type="html">
<div style="margin: 0; padding: 0; font-size: 13px;">
<p>
<br/>
Dear,
<br/>
Your Work Report is mentioned below:
<br/>
<br/>
<strong>Pending Tasks:</strong>
<ul>
<t t-foreach="object.env.context.get('tasks')"
t-as="task">
<li>
<a t-att-href="task['url']">
<t t-esc="task['name']"/>
</a>
</li>
</t>
</ul>
<br/>
<strong>List of Purchase Orders:</strong>
<ul>
<t t-foreach="object.env.context.get('purchase_orders')"
t-as="purchase">
<li>
<a t-att-href="purchase['url']">
<t t-esc="purchase['name']"/>
</a>
</li>
</t>
</ul>
<br/>
<strong>List of Sale Orders:</strong>
<ul>
<t t-foreach="object.env.context.get('sale_order')"
t-as="sales">
<li>
<a t-att-href="sales['url']">
<t t-esc="sales['name']"/>
</a>
</li>
</t>
</ul>
<br/>
<strong>List of CRM Leads:</strong>
<ul>
<t t-foreach="object.env.context.get('crm_lead')"
t-as="crm">
<li>
<a t-att-href="crm['url']">
<t t-esc="crm['name']"/>
</a>
</li>
</t>
</ul>
<br/>
Thank you for your hard work and dedication to our
company.
<br/>
<br/>
Best regards,
<br/>
Manager
</p>
</div>
</field>
</record>
</odoo>