<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="stock_move_line_view_search" model="ir.ui.view">
        <field name="name">stock.move.line.search</field>
        <field name="model">stock.move.line</field>
        <field name="inherit_id" ref="stock.stock_move_line_view_search" />
        <field name="arch" type="xml">
            <filter name="filter_last_12_months" position="after">
                <filter
                    name="actual_date"
                    date="actual_date"
                    default_period="this_month"
                />
            </filter>
            <filter name="by_date" position="after">
                <filter
                    string="Actual Date"
                    name="by_actual_date"
                    domain="[]"
                    context="{'group_by': 'actual_date'}"
                />
            </filter>
        </field>
    </record>
    <record id="view_move_line_tree" model="ir.ui.view">
        <field name="name">stock.move.line.tree</field>
        <field name="model">stock.move.line</field>
        <field name="inherit_id" ref="stock.view_move_line_tree" />
        <field name="arch" type="xml">
            <xpath expr="//field[@name='date']" position="after">
                <field name="actual_date" optional="show" />
            </xpath>
        </field>
    </record>
</odoo>
