<?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="type">form</field>
            <field name="arch" type="xml">
                <form string="Subscription Compute">
                    <separator string="Generate Entries before:" colspan="4"/>
                    <label string ="Automatically generate entries based on what has been entered in the  system before a specific date." colspan="4" nolabel="1"/>
                    <newline/>
                    <field name="date"/>
                	<separator colspan="4" />
                	<group colspan="4" col="6">
                		<label string ="" colspan="2"/>
                    	<button icon="gtk-cancel" special="cancel" string="Cancel" />
                    	<button icon="gtk-execute" string="Generate Entries"
                    	name="action_generate" type="object" />
                	</group>
               </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>
