MIG project_task_line For Odoo 13.0

This commit is contained in:
Bhoomi
2019-09-11 18:21:02 -04:00
committed by Cedric Collins
parent 0b0addc545
commit f620c2afb2
3 changed files with 2 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
'name': 'Project Task Lines',
'version': '12.0.1.0.0',
'version': '13.0.1.0.0',
'author': 'Hibou Corp. <hello@hibou.io>',
'website': 'https://hibou.io/',
'license': 'AGPL-3',

View File

@@ -7,7 +7,6 @@ class ProjectTask(models.Model):
line_ids = fields.One2many('project.task.line', 'task_id', string='Todo List')
subtask_count_done = fields.Integer(compute='_compute_subtask_count', string="Sub-task Done count")
@api.multi
def _compute_subtask_count(self):
for task in self:
task.subtask_count = self.search_count([('id', 'child_of', task.id), ('id', '!=', task.id)])

View File

@@ -14,7 +14,7 @@
<xpath expr="//page[@name='description_page']" position="after">
<page name="task_lines" string="Todo List">
<field name="line_ids" widget="one2many_list">
<tree editable="bottom">
<tree>
<field name="sequence" widget="handle"/>
<field name="name"/>
<field name="kanban_state" widget="state_selection" string="Status"/>