<openerp>
  <data>

    <record id="ftp_browse_form" model="ir.ui.view">
            <field name="name">Document FTP Browse</field>
            <field name="model">document.ftp.browse</field>
            <field name="arch" type="xml">
                <form string="Browse Document" version="7.0">
                    <group>
                        <field name="url" widget="url"/>
                    </group>
                    <footer>
                        <button name="browse_ftp" string="_Browse" type="object" icon="gtk-ok" class="oe_highlight"  />
                        or
                        <button string="Cancel" class="oe_link" special="cancel" />
                    </footer>
                </form>
            </field>
        </record>

        <record id="action_ftp_browse" model="ir.actions.act_window">
            <field name="name">Document Browse</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">document.ftp.browse</field>
            <field name="view_id" ref="ftp_browse_form"/>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="target">new</field>
        </record>

        <menuitem
        name="Shared Repository (FTP)"
        action="action_ftp_browse"
        id="menu_document_browse"
        icon="STOCK_EXECUTE"
        parent="document.menu_document_doc" sequence="1"/>

</data>
</openerp>
