view_account_move.xml 1.01 KB
Newer Older
François C. committed
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
<?xml version="1.0"?>
<!--
    Copyright (C) 2016-Today: La Louve (<http://www.lalouve.net/>)
    @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
    License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->

<odoo>

    <record model="ir.ui.view" id="view_account_move_search">
        <field name="model">account.move</field>
        <field name="inherit_id" ref="account.view_account_move_filter"/>
        <field name="arch" type="xml">
            <field name="date" position="after">
                <field name="search_year"/>
                <field name="search_month"/>
                <field name="search_day"/>
            </field>
            <xpath expr="//group" position="inside">
                <filter string="Year (Search)" context="{'group_by':'search_year'}"/>
                <filter string="Month (Search)" context="{'group_by':'search_month'}"/>
                <filter string="Day (Search)" context="{'group_by':'search_day'}"/>
            </xpath>
        </field>
    </record>

</odoo>