forked from OCA/project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project_view.xml
110 lines (102 loc) · 4.82 KB
/
project_view.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<openerp>
<data>
<!-- FUNCTIONAL BLOCK TO TASK -->
<record id="view_task_functional_block_form" model="ir.ui.view">
<field name="name">project.task.functional_block.form</field>
<field name="model">project.task</field>
<field name="type">form</field>
<field name="inherit_id" ref="project.view_task_form2"/>
<field name="arch" type="xml">
<xpath expr="/form/sheet/group/group/field[@name='progress']" position="after">
<field name="functional_block_id"/>
</xpath>
</field>
</record>
<record id="view_task_tree2" model="ir.ui.view">
<field name="name">project.task.tree.functional_block</field>
<field name="model">project.task</field>
<field name="type">tree</field>
<field name="inherit_id" ref="project.view_task_tree2"/>
<field name="arch" type="xml">
<field name="user_id" position="after">
<field name="functional_block_id"/>
</field>
</field>
</record>
<record id="view_task_search_form_fb" model="ir.ui.view">
<field name="name">project.task.functional.search</field>
<field name="model">project.task</field>
<field name="type">search</field>
<field name="inherit_id" ref="project.view_task_search_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='name']" position="after">
<field name="functional_block_id" select="1"/>
</xpath>
<xpath expr="//filter[@string='Project']" position="after">
<separator orientation="vertical"/>
<filter string="Functional Block" icon="terp-gtk-jump-to-ltr" domain="[]" context="{'group_by':'functional_block_id'}"/>
</xpath>
</field>
</record>
<!-- FUNCTIONAL BLOCK -->
<!-- Search view for software module -->
<record id="funct_block_search_view" model="ir.ui.view">
<field name="name">project.functional.block.search</field>
<field name="model">project.functional.block</field>
<field name="type">search</field>
<field name="arch" type="xml">
<search string="Search software's module">
<separator orientation="vertical"/>
<field name="name" select='1'/>
<field name="parent_id" select='1'/>
<newline/>
<group expand="0" string="Group By...">
<filter string="Parent" icon="terp-partner"
domain="[]" help="Parent"
context="{'group_by':'parent_id'}" />
</group>
</search>
</field>
</record>
<!-- tree view for functional block -->
<record model="ir.ui.view" id="funct_block_list_view">
<field name="name">project.functional.block.list</field>
<field name="model">project.functional.block</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Functionality categories" >
<field name="name"/>
<field name="parent_id"/>
<field name="sequence" invisible="True"/>
</tree>
</field>
</record>
<!-- Form view for functional block -->
<record model="ir.ui.view" id="funct_categ_form_view">
<field name="name">project.functional.block.form</field>
<field name="model">project.functional.block</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Functional block" version="7.0">
<group>
<field name="name"/>
<field name="parent_id"/>
</group>
<separator string="Block description"/>
<field name="description"/>
</form>
</field>
</record>
<!-- OPEN BLOCK LIST -->
<record model="ir.actions.act_window" id="action_funct_block_list">
<field name="name">Functional block list</field>
<field name="res_model">project.functional.block</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="funct_block_list_view"/>
<field name="search_view_id" ref="funct_block_search_view"/>
</record>
<menuitem name="Functional blocks" id="menu_functional_blocks" parent="base.menu_main_pm" sequence="50"/>
<menuitem name="Functional blocks" parent="menu_functional_blocks" id="menu_functional_blocks_list" action="action_funct_block_list" sequence="10"/>
</data>
</openerp>