<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record id="res_log_search" model="ir.ui.view">
            <field name="name">res.log.search</field>
            <field name="model">res.log</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Logs">
                    <filter icon="terp-stock_align_left_24" string="My Logs" domain="[('user_id','=',uid)]" name="my"/>
                    <separator orientation="vertical"/>
                    <field name="name"/>
                    <field name="user_id"/>
                    <field name="res_model"/>
                </search>
            </field>
        </record>
        <record id="res_log_tree" model="ir.ui.view">
            <field name="name">res.log.tree</field>
            <field name="model">res.log</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Logs">
                    <field name="name"/>
                    <field name="user_id"/>
                </tree>
            </field>
        </record>
        <record id="res_log_form" model="ir.ui.view">
            <field name="name">res.log.form</field>
            <field name="model">res.log</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Logs">
                    <group colspan="4" col="6">
                        <field name="name" colspan="4"/>
                        <field name="user_id" />
                        <field name="res_model"/>
                        <field name="res_id"/>
                    </group>
                </form>
            </field>
        </record>

        <record id="res_log_act_window" model="ir.actions.act_window">
            <field name="name">Logs</field>
            <field name="res_model">res.log</field>
            <field name="view_type">form</field>
            <field name="context">{'search_default_my': 1}</field>
        </record>
        <menuitem
            action="res_log_act_window"
            id="menu_res_log_act_window"
            parent="base.next_id_4"/>
    </data>
</openerp>
