summaryrefslogtreecommitdiff
path: root/addons/project/data
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2016-11-21 09:39:58 +0100
committerYannick Tivisse <yti@odoo.com>2016-12-02 14:47:23 +0100
commitd1bd102b4b07ed6e2d4a3923f0d94eaeb1a16ae3 (patch)
treed9d3acda1ef8a76a9e0e4a771a97f09337a9b52f /addons/project/data
parentd075bc32f6276193041d83f9809c271f91b30c93 (diff)
[IMP] project: add a wizard to merge tasks
This wizard allows the users to merge some task in a new task or an existing one A user and a project are taken by default but may be configurable on the wizard. The other tasks are archived. A message is posted on the tasks to report the target and a message is posted on the target to report the origin tasks.
Diffstat (limited to 'addons/project/data')
-rw-r--r--addons/project/data/project_data.xml18
1 files changed, 18 insertions, 0 deletions
diff --git a/addons/project/data/project_data.xml b/addons/project/data/project_data.xml
index 1f4148b7377..aaf98e63535 100644
--- a/addons/project/data/project_data.xml
+++ b/addons/project/data/project_data.xml
@@ -340,6 +340,24 @@
<field name="displayed_image_id" ref="msg_task_data_14_attach"/>
</record>
+
</data>
+ <template id="mail_template_task_merge">
+ <t t-if="target">
+ <t t-if="len(tasks) == 1"><p>The following task has been merged into this one:</p></t>
+ <t t-if="len(tasks) &gt; 1"><p>The following tasks have been merged into this one:</p></t>
+ <ul>
+ <t t-foreach="tasks" t-as="task">
+ <li><a href="#" t-att-data-oe-model="task._name" t-att-data-oe-id="task.id"><t t-esc="task.name"/></a></li>
+ </t>
+ </ul>
+ </t>
+ <t t-if="not target">
+ <p>This task has been merged into the following task:</p>
+ <ul>
+ <li><a href="#" t-att-data-oe-model="task._name" t-att-data-oe-id="task.id"><t t-esc="task.name"/></a></li>
+ </ul>
+ </t>
+ </template>
</odoo>