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

        <record id="view_account_subscription_generate" model="ir.ui.view">
            <field name="name">account.subscription.generate.form</field>
            <field name="model">account.subscription.generate</field>
            <field name="arch" type="xml">
                <form string="Subscription Compute" version="7.0">
                    <group>
                        <field name="date"/>
                    </group>
                    <footer>
                        <button string="Generate Entries" name="action_generate" type="object" class="oe_highlight"/>
                        or
                        <button string="Cancel" class="oe_link" special="cancel" />
                    </footer>
               </form>
            </field>
        </record>

        <record id="action_account_subscription_generate" model="ir.actions.act_window">
            <field name="name">Generate Entries</field>
            <field name="res_model">account.subscription.generate</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="view_id" ref="view_account_subscription_generate"/>
            <field name="target">new</field>
        </record>

        <menuitem sequence="3" action="action_account_subscription_generate" id="menu_generate_subscription" parent="account.menu_finance_recurrent_entries" />

    </data>
</openerp>
