~laetitia-gangloff/acsone-addons/hr_utilization_group_by_report

« back to all changes in this revision

Viewing changes to project_code/project_view.xml

  • Committer: Stéphane Bidoul
  • Date: 2012-08-31 16:18:33 UTC
  • Revision ID: stephane.bidoul@acsone.eu-20120831161833-79qfku4zqiy2qgon
First commit of project_code

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<openerp>
 
3
        <data>
 
4
 
 
5
                <!--
 
6
                        add project code in project form
 
7
                -->
 
8
                <record id="edit_project" model="ir.ui.view">
 
9
                        <field name="name">project.project.form</field>
 
10
                        <field name="model">project.project</field>
 
11
                        <field name="type">form</field>
 
12
                        <field name="inherit_id" ref="project.edit_project" />
 
13
                        <field name="arch" type="xml">
 
14
                                <!--  make project code visible (inherited from analytic_account) -->
 
15
                                <field name="name" position="after">
 
16
                                        <field name="code" string="Project Code" />
 
17
                                </field>
 
18
                        </field>
 
19
                </record>
 
20
 
 
21
                <!--
 
22
                        add project code in project filter
 
23
                -->
 
24
                <record id="view_project_project_filter" model="ir.ui.view">
 
25
                        <field name="name">project.project.search</field>
 
26
                        <field name="model">project.project</field>
 
27
                        <field name="type">search</field>
 
28
                        <field name="inherit_id" ref="project.view_project_project_filter" />
 
29
                        <field name="arch" type="xml">
 
30
                                <field name="name" position="after">
 
31
                                        <field name="code" string="Project Code" />
 
32
                                </field>
 
33
                        </field>
 
34
                </record>
 
35
 
 
36
                <!--  
 
37
                        add the project code field on project view
 
38
                -->
 
39
                <record id="view_project" model="ir.ui.view">
 
40
                        <field name="name">project.project.tree</field>
 
41
                        <field name="model">project.project</field>
 
42
                        <field name="type">tree</field>
 
43
                        <field name="field_parent">child_ids</field>
 
44
                        <field name="inherit_id" ref="project.view_project" />
 
45
                        <field name="arch" type="xml">
 
46
                                <field name="name" position="after">
 
47
                                        <field name="code" string="Project Code" />
 
48
                                </field>
 
49
                        </field>
 
50
                </record>
 
51
 
 
52
        </data>
 
53
</openerp>