forked from openlabs/nereid-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.xml
102 lines (93 loc) · 4.25 KB
/
project.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
<?xml version="1.0"?>
<!-- This file is part of nereid-project. The COPYRIGHT file at the top level
of this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record id="nereid_work_view_form" model="ir.ui.view">
<field name="model">project.work</field>
<field name="inherit" ref="project.work_view_form"/>
<field name="arch" type="xml">
<![CDATA[
<data>
<xpath expr="/form/notebook/page[@id="general"]/separator[@name="comment"]"
position="before">
<label name="assigned_to"/>
<field name="assigned_to"/>
<label name="progress_state"/>
<field name="progress_state"/>
<label name="work_period"/>
<field name="work_period"/>
</xpath>
<xpath expr="/form/notebook" position="inside">
<page string="Participants" id="project_participants">
<separator name="participants" colspan="4"/>
<field name="participants" colspan="4"/>
<separator name="all_participants" colspan="4"/>
<field name="all_participants" colspan="4"/>
</page>
<page string="Tags" id="project_tags">
<separator name="tags" colspan="4"/>
<field name="tags_for_projects" colspan="4"/>
<field name="tags" colspan="4"/>
</page>
<page string="Commits" id="project_repo_commits">
<field name="repo_commits" colspan="4"/>
</page>
</xpath>
</data>
]]>
</field>
</record>
<!--Work Period-->
<record model="ir.ui.view" id="work_period_form">
<field name="model">project.work.period</field>
<field name="type">form</field>
<field name="arch" type="xml">
<![CDATA[
<form string="Work Period">
<label name="name" />
<field name="name" />
<newline/>
<label name="start_date" />
<field name="start_date" />
<label name="end_date" />
<field name="end_date" />
</form>
]]>
</field>
</record>
<record model="ir.ui.view" id="work_period_view_tree">
<field name="model">project.work.period</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<![CDATA[
<tree string="Work Periods">
<field name="name" />
<field name="start_date" />
<field name="end_date" />
</tree>
]]>
</field>
</record>
<record model="ir.action.act_window" id="act_work_period_form">
<field name="name">Work Periods</field>
<field name="res_model">project.work.period</field>
</record>
<record model="ir.action.act_window.view" id="act_work_period_form_view1">
<field name="sequence" eval="10" />
<field name="view" ref="work_period_view_tree" />
<field name="act_window" ref="act_work_period_form" />
</record>
<record model="ir.action.act_window.view" id="act_work_period_form_view2">
<field name="sequence" eval="20" />
<field name="view" ref="work_period_form" />
<field name="act_window" ref="act_work_period_form" />
</record>
<menuitem parent="project.menu_project" action="act_work_period_form"
id="menu_work_period" sequence="100" />
<record id="permission_project_admin" model="nereid.permission">
<field name="name">Project Admin</field>
<field name="value">project.admin</field>
</record>
</data>
</tryton>