forked from camptocamp/account-analytic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalytic_secondaxis_view.xml
executable file
·72 lines (67 loc) · 3.59 KB
/
analytic_secondaxis_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
<openerp>
<data>
#---------------------------------------------------------------------------------------------------------
# Add activity on project_view
#---------------------------------------------------------------------------------------------------------
<record id="edit_project" model="ir.ui.view">
<field name="name">project.project.form</field>
<field name="model">project.project</field>
<field name="inherit_id" ref="project.edit_project"/>
<field name="type">form</field>
<field name="arch" type="xml">
<page string="Notes" position="after">
<page string="Activities">
<field colspan="4" name="activity_ids" nolabel="1"/>
</page>
</page>
</field>
</record>
#---------------------------------------------------------------------------------------------------------
# Task work
#---------------------------------------------------------------------------------------------------------
<record id="view_task_work_form" model="ir.ui.view">
<field name="name">project.task.work.form</field>
<field name="model">project.task.work</field>
<field name="type">form</field>
<field name="inherit_id" ref="project.view_task_work_form"/>
<field name="arch" type="xml">
<field name="user_id" select="1" position="after">
<field name="activity" />
</field>
</field>
</record>
<record id="view_task_work_tree" model="ir.ui.view">
<field name="name">project.task.work.tree</field>
<field name="model">project.task.work</field>
<field name="inherit_id" ref="project.view_task_work_tree"/>
<field name="type">tree</field>
<field name="arch" type="xml">
<field name="user_id" position="after">
<field name="activity" />
</field>
</field>
</record>
#---------------------------------------------------------------------------------------------------------
# Task
#---------------------------------------------------------------------------------------------------------
<record id="view_task_form2" model="ir.ui.view">
<field name="name">project.task.form</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_form2"/>
<field name="type">form</field>
<field name="arch" type="xml">
<xpath expr="/form/notebook/page[@string='Information']/field[@name='work_ids']" position="replace">
<field colspan="4" name="work_ids" nolabel="1" attrs="{'invisible':[('state','in',['draft'])],'readonly':[('state','=','done')]}" >
<tree string="Task Work" editable="top">
<field name="name" />
<field name="hours" widget="float_time" sum="Spent Hours"/>
<field name="activity" context="{'project_id':parent.project_id, 'from_task':True}"/>
<field name="user_id" />
<field name="date" />
</tree>
</field>
</xpath>
</field>
</record>
</data>
</openerp>