<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

    <!-- Audittrail View Log  wizard-->

        <record id="view_audittrail_view_log" model="ir.ui.view">
            <field name="name">audittrail.view.log.form</field>
            <field name="model">audittrail.view.log</field>
            <field name="arch" type="xml">
                <form string="Audit Logs" version="7.0">
                    <group col="4">
                         <field name="from"/>
                         <field name="to"/>
                    </group>
                    <footer>
                        <button string="Open Logs" name="log_open_window" type="object" class="oe_highlight"/>
                        or
                        <button string="Cancel" class="oe_link" special="cancel"/>
                    </footer>
               </form>
            </field>
          </record>

  <!-- action for audittrail view log wizard -->

        <record id="action_audittrail_view_log" model="ir.actions.act_window">
            <field name="name">View log</field>
            <field name="res_model">audittrail.view.log</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
           <field name="view_id" ref="view_audittrail_view_log"/>
           <field name="target">new</field>
        </record>

    </data>
</openerp>
