add project name in email template for task

This commit is contained in:
Pawan Kumar 2021-03-31 12:41:15 +05:30
parent a4cb1beb80
commit 978f54e19e
2 changed files with 29 additions and 1 deletions

View File

@ -19,5 +19,33 @@
</data>
</template>
<!-- Override Discuss utility templates for notifications -->
<template id="mail.message_user_assigned">
<p style="margin: 0px;">
<span>Dear <t t-esc="object.user_id.sudo().name"/>,</span><br />
<br/>
<t t-if="model_description or 'document' == 'Task'">
<span style="margin-top: 8px;">You have been assigned to the
<t t-esc="model_description or 'document'"/>
<t t-esc="object.display_name"/> (Project :<t t-esc="object.project_id.name"/>).
</span>
</t>
<t t-else="">
<span style="margin-top: 8px;">You have been assigned to the
<t t-esc="model_description or 'document'"/>
<t t-esc="object.display_name"/>.
</span>
</t>
</p>
<p style="margin-top: 24px; margin-bottom: 16px;">
<a t-att-href="access_link" t-att-data-oe-model="object._name" t-att-data-oe-id="object.id"
style="background-color:#875A7B; padding: 10px; text-decoration: none; color: #fff; border-radius: 5px;">
View
<t t-esc="model_description or 'document'"/>
</a>
</p>
</template>
</data>
</odoo>

View File

@ -8,4 +8,4 @@ from . import project_overview
from . import analytic
from . import product
from . import hr_employee
from . import sale
from . import sale