[MIG] website_project_task: to 15.0

This commit is contained in:
Jared Kipe
2022-01-06 14:42:01 -08:00
parent e4aa98d548
commit 3ff43099a1
3 changed files with 6 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
{ {
'name': 'Website Project Tasks', 'name': 'Website Project Tasks',
'version': '13.0.1.0.0', 'version': '15.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',

View File

@@ -1,5 +1,5 @@
from odoo import api, exceptions, fields, models, _ from odoo import api, exceptions, fields, models, _
from werkzeug.urls import url_encode
class ProjectTask(models.Model): class ProjectTask(models.Model):
_name = 'project.task' _name = 'project.task'

View File

@@ -17,22 +17,19 @@
</record> </record>
<template id="my_tasks" inherit_id='project.portal_my_tasks' name="Stage Colors etc."> <template id="my_tasks" inherit_id='project.portal_tasks_list' name="Stage Colors etc.">
<xpath expr="//td/span[hasclass('badge-info')]" position="attributes"> <xpath expr="//t[@t-foreach='tasks']/tr/td/span[@t-esc='task.stage_id.name']" position="attributes">
<attribute name="t-attf-class">badge badge-pill badge-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_tasks_list' customize_show="True" name="Task Tags on table">
<xpath expr="//t/t/t/t/thead/tr/th[1]" position="attributes">
<attribute name="class">col-md-8</attribute>
</xpath>
<xpath expr="//t/t/t/t/thead/tr/th[2]" position="after"> <xpath expr="//t/t/t/t/thead/tr/th[2]" position="after">
<th>Tags</th> <th>Tags</th>
</xpath> </xpath>
<!-- Strange number of columns --> <!-- Strange number of columns -->
<xpath expr="//tbody/t/tr/td[1]" position="after"> <xpath expr="//tbody/t/tr/td[2]" 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>