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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

    <!-- Add a filter to search engagement journal lines -->
        <record id="inherit_view_account_analytic_line_filter" model="ir.ui.view">
            <field name="name">account.analytic.line.select</field>
            <field name="model">account.analytic.line</field>
            <field name="type">search</field>
            <field name="inherit_id" ref="account.view_account_analytic_line_filter"/>
            <field name="arch" type="xml">
                <xpath expr="/search/group[1]/filter[@name='purchases']" position='after'>
                    <filter name="engagements" string="Engagements" domain="[('journal_id.type','=','engagement')]" icon="terp-folder-violet" help="Analytic Journal Items related to an engagement journal."/>
                </xpath>
            </field>
        </record>

    </data>
</openerp>