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

« back to all changes in this revision

Viewing changes to analytic_distribution/analytic_line_view.xml

  • Committer: jf
  • Date: 2011-12-30 09:08:24 UTC
  • mfrom: (395.8.8 UF-661)
  • Revision ID: jf@tempo4-20111230090824-4zbrgeyqqu4z4so3
UF-661 [MERGE] Financing contracts: Export CSV File

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 icon ahead analytic line to inform if this line have been reallocated or not -->
 
6
        <record id="inherit2_view_account_analytic_line_tree" model="ir.ui.view">
 
7
            <field name="name">account.analytic.line.tree</field>
 
8
            <field name="model">account.analytic.line</field>
 
9
            <field name="type">tree</field>
 
10
            <field name="inherit_id" ref="account.view_account_analytic_line_tree"/>
 
11
            <field name="priority" eval="10"/>
 
12
            <field name="arch" type="xml">
 
13
                <data>
 
14
                    <xpath expr="/tree/field[@name='date']" position='before'>
 
15
                        <field name="is_reallocated" invisible="1"/>
 
16
                        <button string="Have been reallocated" attrs="{'invisible': [('is_reallocated', '=', False)]}" icon="terp-mail-" colspan="2"/>
 
17
                    </xpath>
 
18
                </data>
 
19
            </field>
 
20
        </record>
 
21
 
 
22
    <!-- Add a filter to search engagement journal lines -->
 
23
        <record id="inherit2_view_account_analytic_line_filter" model="ir.ui.view">
 
24
            <field name="name">inherit.account.analytic.line.select</field>
 
25
            <field name="model">account.analytic.line</field>
 
26
            <field name="type">search</field>
 
27
            <field name="inherit_id" ref="account.view_account_analytic_line_filter"/>
 
28
            <field name="arch" type="xml">
 
29
                <xpath expr="/search/group[1]/field[@name='user_id']" position='after'>
 
30
                    <field name="is_reallocated"/>
 
31
                </xpath>
 
32
            </field>
 
33
        </record>
 
34
 
 
35
    </data>
 
36
</openerp>