Many templates use the company logo that is set by default on database creation. As that logo is clearly a placeholder and the user isn't necesserely prompted to update it. It's possible for a user to inadvertently start sending emails with "your logo" placeholders plastered all over. This removes the default logo of the company and removes it from templates conditionally. The logo isn't simply replaced with a transparent PNG as the templates set a fixed height for the logo, which would look weird. task-3067315 Part-of: odoo/odoo#106307
58 lines
2.8 KiB
XML
58 lines
2.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data noupdate="1">
|
|
<template id="hr_expense_template_refuse_reason">
|
|
<p>Your Expense Report <t t-esc="name"/> has been refused</p>
|
|
<ul class="o_timeline_tracking_value_list">
|
|
<li>Reason: <t t-esc="reason"/></li>
|
|
</ul>
|
|
</template>
|
|
|
|
<template id="hr_expense_template_register">
|
|
<p>Dear <t t-esc="expense.employee_id.name"/>,</p>
|
|
<p>
|
|
Your expense has been successfully registered.
|
|
<t t-if="expense.employee_id.user_id">
|
|
You can now submit it to the manager from the following link.
|
|
</t>
|
|
</p>
|
|
<p t-if="expense.product_id">
|
|
Category: <t t-esc="expense.product_id.name"/>
|
|
</p>
|
|
<div t-else="">
|
|
<p>Category: not found</p>
|
|
<p>The first word of the email subject did not correspond to any category code. You'll have to set the category manually on the expense.</p>
|
|
</div>
|
|
<p>
|
|
Price: <t t-esc="expense.unit_amount"/><t t-esc="expense.currency_id.symbol"/>
|
|
</p>
|
|
<p t-if="expense.employee_id.user_id">
|
|
<br/>
|
|
<a t-att-href="'/web#id=%s&model=hr.expense&view_type=form' % (expense.id)" style="background-color: #9E588B; margin-top: 10px; padding: 10px; text-decoration: none; color: #fff; border-radius: 5px; font-size: 16px;">View Expense</a>
|
|
</p>
|
|
</template>
|
|
|
|
<template id="hr_expense_template_register_no_user">
|
|
<div style="background:#F0F0F0;color:#515166;padding:10px 0px;font-family:Arial,Helvetica,sans-serif;font-size:14px;">
|
|
<table style="width:600px;margin:5px auto;" t-if="not expense.employee_id.company_id.uses_default_logo">
|
|
<tbody>
|
|
<tr>
|
|
<td><a href="/"><img t-attf-src="/logo.png?company={{ expense.employee_id.company_id.id }}" style="vertical-align:baseline;max-width:100px;max-height:50px;" /></a></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table style="width:600px;margin:0px auto;background:white;border:1px solid #e1e1e1;">
|
|
<tbody>
|
|
<tr>
|
|
<td style="padding:15px 20px 10px 20px;">
|
|
<t t-call="hr_expense.hr_expense_template_register"/>
|
|
<p style="color:#9E588B;">Powered by <a target="_blank" href="https://www.odoo.com">Odoo</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</template>
|
|
</data>
|
|
</odoo>
|