-
Notifications
You must be signed in to change notification settings - Fork 3
/
agile.xml
54 lines (51 loc) · 2.03 KB
/
agile.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0"?>
<tryton>
<data>
<record model="ir.ui.view" id="agile_task_form">
<field name="model">project.work</field>
<field name="type">form</field>
<field name="inherit" ref="project.work_view_form" />
<field name="arch" type="xml">
<![CDATA[
<data>
<xpath
expr="/form/field[@name='sequence']" position="after">
<label name="category"/>
<field name="category"/>
</xpath>
<xpath expr="/form/notebook/page[@id='general']"
position="after">
<page string="Children" id="children"
states="{'invisible': Not(Equal(Eval('type'),
'story'))}">
<field name="children_story" colspan="4"/>
</page>
</xpath>
</data>
]]>
</field>
</record>
<record model="ir.ui.view" id="agile_task_tree">
<field name="model">project.work</field>
<field name="type">tree</field>
<field name="inherit" ref="project.work_view_list"/>
<field name="arch" type="xml">
<![CDATA[
<data>
<xpath expr="/tree/field[@name='state']" position="after">
<field name="category"/>
</xpath>
</data>
]]>
</field>
</record>
<record model="ir.action.act_window" id="act_story_tree">
<field name="name">Stories</field>
<field name="res_model">project.work</field>
<field name="domain">[('type', '=', 'story')]</field>
<field name="context"></field>
</record>
<menuitem parent="project.menu_project_tree" action="act_story_tree"
id="menu_story_tree"/>
</data>
</tryton>