summaryrefslogtreecommitdiff
path: root/addons/project/views/project_views.xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/project/views/project_views.xml')
-rw-r--r--addons/project/views/project_views.xml10
1 files changed, 1 insertions, 9 deletions
diff --git a/addons/project/views/project_views.xml b/addons/project/views/project_views.xml
index dd3d3e18201..41dad0fef65 100644
--- a/addons/project/views/project_views.xml
+++ b/addons/project/views/project_views.xml
@@ -84,14 +84,6 @@
<field name="name">Sub-tasks</field>
<field name="res_model">project.task</field>
<field name="view_mode">kanban,tree,form,calendar,pivot,graph</field>
- <field name="domain">[('id', 'child_of', active_id), ('id', '!=', active_id)]</field>
- <field name="context">
- {
- 'default_parent_id' : active_id,
- 'default_project_id' : project_id,
- 'default_name' : name + ':',
- }
- </field>
<field name="search_view_id" ref="project.view_task_search_form"/>
</record>
@@ -424,7 +416,7 @@
<sheet string="Task">
<div class="oe_button_box" name="button_box">
<button class="oe_stat_button" icon="fa-tasks" type="object" name="action_open_parent_task" string="Parent Task" attrs="{'invisible' : [('parent_id', '=', False)]}" groups="project.group_subtask_project"/>
- <button id="subtask_stat_button" name="%(project_task_action_sub_task)d" type="action" class="oe_stat_button" icon="fa-tasks"
+ <button name="action_subtask" type="object" class="oe_stat_button" icon="fa-tasks"
attrs="{'invisible' : [('parent_id', '!=', False)]}"
context="{'project_id': project_id, 'name': name, 'parent_id': id}" groups="project.group_subtask_project">
<field string="Sub-tasks" name="subtask_count" widget="statinfo"/>