mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
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:
committed by
Salomon Chambi
parent
6be5aebd28
commit
6efd3a5fef
@@ -36,4 +36,22 @@
|
||||
</xpath>
|
||||
</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>
|
||||
|
||||
Reference in New Issue
Block a user