35 lines
1.6 KiB
XML
35 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data noupdate="1">
|
|
<record id="mt_task_assignees" model="mail.message.subtype">
|
|
<field name="name">Assignees change</field>
|
|
<field name="res_model">project.task</field>
|
|
<field name="default" eval="False"/>
|
|
<field name="description">Assignees changed</field>
|
|
</record>
|
|
|
|
<record id="mt_project_task_assignees" model="mail.message.subtype">
|
|
<field name="name">Task Assignees Changed</field>
|
|
<field name="sequence">13</field>
|
|
<field name="res_model">project.project</field>
|
|
<field name="default" eval="False"/>
|
|
<field name="parent_id" eval="ref('mt_task_assignees')"/>
|
|
<field name="relation_field">project_id</field>
|
|
</record>
|
|
</data>
|
|
|
|
<!-- Template email user assigned to a task -->
|
|
<data>
|
|
<template id="message_user_assigned">
|
|
<p style="margin: 0px;">
|
|
<span>Dear <t t-esc="partner_name"/>,</span><br />
|
|
<span style="margin-top: 8px;">You have been assigned to the <t t-esc="model_description or 'document'"/> <t t-esc="object.name_get()[0][1]"/>.</span>
|
|
</p>
|
|
<p style="margin-top: 24px; margin-bottom: 16px;">
|
|
<a t-att-href="'/mail/view?model=%s&res_id=%s' % (object._name, 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> |