mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
MIG website_project_task to 12.0
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
'name': 'Website Project Tasks',
|
'name': 'Website Project Tasks',
|
||||||
'version': '11.0.1.0.0',
|
'version': '12.0.1.0.0',
|
||||||
'author': 'Hibou Corp. <hello@hibou.io>',
|
'author': 'Hibou Corp. <hello@hibou.io>',
|
||||||
'website': 'https://hibou.io/',
|
'website': 'https://hibou.io/',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
|
|||||||
@@ -2,21 +2,21 @@
|
|||||||
<odoo>
|
<odoo>
|
||||||
|
|
||||||
<template id="my_tasks" inherit_id='project.portal_my_tasks' name="Stage Colors etc.">
|
<template id="my_tasks" inherit_id='project.portal_my_tasks' name="Stage Colors etc.">
|
||||||
<xpath expr="//td/span[@class='label label-info']" position="attributes">
|
<xpath expr="//td/span[hasclass('badge-info')]" position="attributes">
|
||||||
<attribute name="t-attf-class">label label-info stage stage-{{ task.stage_id.name }}</attribute>
|
<attribute name="t-attf-class">badge badge-pill badge-info stage stage-{{ task.stage_id.name }}</attribute>
|
||||||
</xpath>
|
</xpath>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
||||||
<template id="task_tag_grid" inherit_id='project.portal_my_tasks' customize_show="True" name="Task Tags on table">
|
<template id="task_tag_grid" inherit_id='project.portal_my_tasks' customize_show="True" name="Task Tags on table">
|
||||||
<xpath expr="//table/thead/tr/th[1]" position="attributes">
|
<xpath expr="//thead/tr/th[1]" position="attributes">
|
||||||
<attribute name="class">col-md-8</attribute>
|
<attribute name="class">col-md-8</attribute>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//table/thead/tr/th[2]" position="after">
|
<xpath expr="//thead/tr/th[2]" position="after">
|
||||||
<th>Tags</th>
|
<th>Tags</th>
|
||||||
</xpath>
|
</xpath>
|
||||||
<!-- Strange number of columns -->
|
<!-- Strange number of columns -->
|
||||||
<xpath expr="//table/tbody/t/tr/td[1]" position="after">
|
<xpath expr="//tbody/t/tr/td[1]" position="after">
|
||||||
<td>
|
<td>
|
||||||
<t t-foreach="task.tag_ids" t-as="tag">
|
<t t-foreach="task.tag_ids" t-as="tag">
|
||||||
<span t-attf-class="label tag tag-color-{{ tag.color }} tag-{{ tag.name }}"><t t-esc="tag.name"/></span>
|
<span t-attf-class="label tag tag-color-{{ tag.color }} tag-{{ tag.name }}"><t t-esc="tag.name"/></span>
|
||||||
@@ -26,8 +26,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template id="my_task" inherit_id='project.portal_my_task' name="Stage Colors etc.">
|
<template id="my_task" inherit_id='project.portal_my_task' name="Stage Colors etc.">
|
||||||
<xpath expr="//span[@class='pull-right label label-info']" position="attributes">
|
<xpath expr="//span[hasclass('badge-info')]" position="attributes">
|
||||||
<attribute name="t-attf-class">pull-right label label-info stage stage-{{ task.stage_id.name }}</attribute>
|
<attribute name="t-attf-class">badge badge-pill badge-info stage stage-{{ task.stage_id.name }}</attribute>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//h4" position="after">
|
<xpath expr="//h4" position="after">
|
||||||
<p t-if="task.tag_ids">
|
<p t-if="task.tag_ids">
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
</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">
|
<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">
|
<xpath expr="//div[@t-if='task.description']" position="before">
|
||||||
<t t-if="task.sudo().line_ids">
|
<t t-if="task.sudo().line_ids">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<strong>Todo List</strong>
|
<strong>Todo List</strong>
|
||||||
|
|||||||
Reference in New Issue
Block a user