mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-23 11:12:03 +02:00
19.0 vanilla
This commit is contained in:
parent
a1137a1456
commit
e1d89e11e3
2789 changed files with 1093187 additions and 605897 deletions
|
|
@ -2,14 +2,14 @@
|
|||
<odoo>
|
||||
<data noupdate="1">
|
||||
<template id="hr_expense_template_refuse_reason">
|
||||
<p>Your Expense <t t-if="is_sheet">Report </t><t t-esc="name"/> has been refused</p>
|
||||
<p>Your Expense <t t-out="name"/> has been refused</p>
|
||||
<ul class="o_timeline_tracking_value_list">
|
||||
<li>Reason : <t t-esc="reason"/></li>
|
||||
<li>Reason: <t t-out="reason"/></li>
|
||||
</ul>
|
||||
</template>
|
||||
|
||||
<template id="hr_expense_template_register">
|
||||
<p>Dear <t t-esc="expense.employee_id.name"/>,</p>
|
||||
<p>Dear <t t-out="expense.employee_id.name"/>,</p>
|
||||
<p>
|
||||
Your expense has been successfully registered.
|
||||
<t t-if="expense.employee_id.user_id">
|
||||
|
|
@ -17,27 +17,61 @@
|
|||
</t>
|
||||
</p>
|
||||
<p t-if="expense.product_id">
|
||||
Category: <t t-esc="expense.product_id.name"/>
|
||||
Category: <t t-out="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"/>
|
||||
Price: <t t-out="expense.price_unit"/><t t-out="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>
|
||||
<a t-att-href="'/odoo/hr.expense/%s' % (expense.id)" class="o_expense_button_mail">View Expense</a>
|
||||
</p>
|
||||
</template>
|
||||
|
||||
<template id="hr_expense_template_submitted_expenses">
|
||||
<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;background:white;border:1px solid #e1e1e1;">
|
||||
<tbody><tr>
|
||||
<td style="padding:15px 20px 10px 20px;">
|
||||
<p style="font-size:20px;font-weight:bold;color:#515166;">Expenses approval</p>
|
||||
<hr style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;"/>
|
||||
<p>Dear <t t-out="manager_name"/>,</p>
|
||||
<p>New expenses are waiting for your approval. You can Review them by following this link.</p>
|
||||
<br/>
|
||||
<a t-att-href="url" style="padding: 8px 12px; font-size: 12px; color: #FFFFFF; text-decoration: none !important; font-weight: 400; background-color: #875A7B; border: 0px solid #875A7B; border-radius:3px">View expenses</a>
|
||||
<br/><br/>
|
||||
<hr style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;"/>
|
||||
<table style="width: 100%;">
|
||||
<tbody><tr>
|
||||
<td align="center" style="min-width: 590px; padding: 0 8px 0 8px; font-size:11px;">
|
||||
<b t-out="company.name"/><br/>
|
||||
<div style="color: #999999;">
|
||||
<t t-out="company.phone"/>
|
||||
<t t-if="company.email"> | <a t-att-href="'mailto:%s' % company.email" style="text-decoration:none; color: #999999;"><t t-out="company.email"/></a></t>
|
||||
<t t-if="company.website"> | <a t-att-href="company.website" style="text-decoration:none; color: #999999;"><t t-out="company.website"/></a></t>
|
||||
</div>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table>
|
||||
<p style="text-align: center;font-size: 13px;">
|
||||
Powered by <a target="_blank" href="https://www.odoo.com?utm_source=db&utm_medium=expense" style="color: #9E588B;">Odoo</a>.
|
||||
</p>
|
||||
</div>
|
||||
</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;">
|
||||
<table style="width:600px;margin:5px auto;" t-if="not expense.employee_id.company_id.uses_default_logo">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/"><img src="/web/binary/company_logo" style="vertical-align:baseline;max-width:100px;" /></a></td>
|
||||
<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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue