mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
MIG project_task_line For Odoo 13.0
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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)])
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user