ADD security to project.task.line and show on website.

`website_project_task` module now includes optional template to display Todo List on the task view
This commit is contained in:
Jared Kipe
2018-11-03 16:26:49 -07:00
committed by Salomon Chambi
parent 6be5aebd28
commit 6efd3a5fef

View File

@@ -36,4 +36,22 @@
</xpath> </xpath>
</template> </template>
<template id="my_task_todo" inherit_id='project.portal_my_task' name="Todo List (requires project_task_line)" customize_show="True" active="False">
<xpath expr="//t[@t-if='task.description']" position="before">
<t t-if="task.line_ids">
<div class="col-md-12">
<strong>Todo List</strong>
<ul class="list-unstyled">
<li t-foreach="task.line_ids" t-as="line">
<span t-if="line.kanban_state == 'normal'" class="text-muted"><i class="fa fa-circle"></i></span>
<span t-if="line.kanban_state == 'done'" class="text-success"><i class="fa fa-check-circle"></i></span>
<span t-if="line.kanban_state == 'blocked'" class="text-danger"><i class="fa fa-times-circle"></i></span>
<span t-field="line.name"/>
</li>
</ul>
</div>
</t>
</xpath>
</template>
</odoo> </odoo>