forked from OCA/project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
service_desk_view.xml
78 lines (60 loc) · 3.19 KB
/
service_desk_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
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- Project form -->
<record id="view_project_form_sdesk" model="ir.ui.view">
<field name="name">view_project_form_sdesk</field>
<field name="model">project.project</field>
<field name="inherit_id" ref="project.edit_project"/>
<field name="arch" type="xml">
<field name="parent_id" position="after">
<field name="use_analytic_account"/>
</field>
</field>
</record>
<!-- Project Task tree list -->
<record model="ir.ui.view" id="project_task_tree_view_sdesk">
<field name="name">project_task_tree_view_sdesk</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_tree2"/>
<field name="arch" type="xml">
<!-- See Analytic Account, if Project is configured so -->
<field name="name" position="after">
<field name="use_analytic_account" invisible="1"/>
<field name="analytic_account_id"
attrs="{'invisible':[('use_analytic_account','not in',['yes','req'])],'required':[('use_analytic_account','=','req')]}"/>
</field>
</field>
</record>
<!-- Project Task form -->
<record id="view_project_task_form_sdesk" model="ir.ui.view">
<field name="name">view_project_task_form_sdesk</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_form2"/>
<field name="arch" type="xml">
<field name="project_id" position="before">
<field name="use_analytic_account" invisible="1"/>
<field name="analytic_account_id" on_change="onchange_analytic(analytic_account_id)"
attrs="{'invisible':[('use_analytic_account','not in',['yes','req'])],'required':[('use_analytic_account','=','req')]}"/>
<field name="location_id"
attrs="{'invisible':[('use_analytic_account','not in',['yes','req'])],'required':[('use_analytic_account','=','req')]}"/>
</field>
<field name="project_id" position="attributes">
<attribute name="on_change">onchange_project(project_id)</attribute>
</field>
</field>
</record>
<!-- Project Task filter -->
<record id="view_task_search_form" model="ir.ui.view">
<field name="name">view_task_search_form_sdesk</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_search_form"/>
<field name="arch" type="xml">
<field name="name" position="after">
<field name="analytic_account_id"/>
<field name="location_id"/>
</field>
</field>
</record>
</data>
</openerp>