<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
    <record model="ir.ui.view" id="test_binary_tree">
        <field name="name">test.binary.tree</field>
        <field name="model">test.binary</field>
        <field name="arch" type="xml">
            <tree>
                <field name="name" />
            </tree>
        </field>
    </record>
    <record model="ir.ui.view" id="test_binary_form">
        <field name="name">test.binary.form</field>
        <field name="model">test.binary</field>
        <field name="arch" type="xml">
            <form>
                <sheet>
                    <div class="oe_title">
                        <label for="name" class="oe_edit_only" string="Binary name" />
                        <h1>
                            <field name="name" />
                        </h1>
                    </div>
                    <group>
                        <group>
                            <field name="file" widget="binary" filename="file_name" />
                            <field name="file_name" invisible="1" />
                        </group>
                    </group>
                </sheet>
            </form>
        </field>
    </record>
    <record model="ir.actions.act_window" id="action_list_test_binary">
        <field name="name">Test Binary</field>
        <field name="res_model">test.binary</field>
        <field name="view_mode">tree,form</field>
    </record>
    <menuitem
        id="menu_test_binary"
        name="Test Binaries"
        sequence="10"
        action="action_list_test_binary"
    />
</odoo>
