~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to account_journal/project/project_view.xml

  • Committer: chloups208
  • Date: 2011-06-30 14:54:26 UTC
  • mto: (307.2.1 unifield-wm)
  • mto: This revision was merged to the branch mainline in revision 311.
  • Revision ID: chloups208@chloups208-laptop-20110630145426-qsj5j0pp3e5b23bc
[UF-53][UF-58][UF-63] initial commit

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
 
    <!-- Add reversal_origin field on account_analytic_line form -->
6
 
        <record id="inherit_view_account_analytic_line_form" model="ir.ui.view">
7
 
            <field name="name">account.analytic.line.form</field>
8
 
            <field name="model">account.analytic.line</field>
9
 
            <field name="type">form</field>
10
 
            <field name="inherit_id" ref="account.view_account_analytic_line_form"/>
11
 
            <field name="priority" eval="20"/>
12
 
            <field name="arch" type="xml">
13
 
                <data>
14
 
                    <xpath expr="/form/group[1]/field[@name='date']" position="after">
15
 
                        <field name="reversal_origin"/>
16
 
                        <field name="invoice_line_id"/>
17
 
                    </xpath>
18
 
                </data>
19
 
            </field>
20
 
        </record>
21
 
 
22
 
    <!-- Add some field to account_analytic_line tree -->
23
 
        <record id="inherit_view_account_analytic_line_tree" model="ir.ui.view">
24
 
            <field name="name">account.analytic.line.tree</field>
25
 
            <field name="model">account.analytic.line</field>
26
 
            <field name="type">tree</field>
27
 
            <field name="inherit_id" ref="account.view_account_analytic_line_tree"/>
28
 
            <field name="priority" eval="10"/>
29
 
            <field name="arch" type="xml">
30
 
                <data>
31
 
                    <xpath expr="/tree/field[@name='name']" position='after'>
32
 
                        <field name="reversal_origin"/>
33
 
                    </xpath>
34
 
                    <xpath expr="/tree/field[@name='amount']" position='after'>
35
 
                        <field name="amount_currency"/>
36
 
                        <field name="currency_id"/>
37
 
                    </xpath>
38
 
                    <xpath expr="/tree/field[@name='general_account_id']" position='after'>
39
 
                        <field name="invoice_line_id"/>
40
 
                    </xpath>
41
 
                </data>
42
 
            </field>
43
 
        </record>
44
 
 
45
 
    <!-- Add a filter to search engagement journal lines -->
46
 
        <record id="inherit_view_account_analytic_line_filter" model="ir.ui.view">
47
 
            <field name="name">account.analytic.line.select</field>
48
 
            <field name="model">account.analytic.line</field>
49
 
            <field name="type">search</field>
50
 
            <field name="inherit_id" ref="account.view_account_analytic_line_filter"/>
51
 
            <field name="arch" type="xml">
52
 
                <xpath expr="/search/group[1]/filter[@name='purchases']" position='after'>
53
 
                    <filter name="engagements" string="Engagements" domain="[('journal_id.type','=','engagement')]" icon="terp-folder-violet" help="Analytic Journal Items related to an engagement journal."/>
54
 
                </xpath>
55
 
            </field>
56
 
        </record>
57
 
 
58
 
    </data>
59
 
</openerp>