<?xml version="1.0" ?>
<openerp>
<data>
        <record id="account_coda_import_view" model="ir.ui.view">
             <field name="name">Import Coda Statement</field>
             <field name="model">account.coda.import</field>
             <field name="type">form</field>
             <field name="arch" type="xml">
				<form string="Import Coda Statement">
				<separator string="Configure Your Journal and Account :"/>
				    <newline/>
				    <group colspan="4">
	                    <field name="def_receivable" />
	                    <field name="def_payable" />
	                    <field name="journal_id" domain="[('type','=','bank')]" />
	                    <field name="awaiting_account" />
				    </group>
				    <newline/>
				    <separator string="Click on 'New' to select your file :" colspan="4"/>
				    <field name="coda"/>
				    <newline/>
				    <separator colspan="4"/>
					<group colspan="4">
     					<button special="cancel" string="Cancel" icon="gtk-cancel"/>
               			<button name="coda_parsing" string="Import" type="object" icon="gtk-ok"/>
 					</group>
				</form>
			</field>
		</record>

		<record id="account_coda_note_view" model="ir.ui.view">
	         <field name="name">Import Coda Statement</field>
	         <field name="model">account.coda.import</field>
	         <field name="type">form</field>
	         <field name="arch" type="xml">
				<form string="Result of Imported Coda Statements">
					<separator colspan="4" string="Results :" />
			    	<field name="note" colspan="4" nolabel="1" width="500" height="310"/>
			    	<newline/>
					<separator colspan="6"/>
					<button special="cancel" string="Close" icon="gtk-cancel"/>
					<button name="action_open_window" string="Open Statements" type="object" icon="gtk-apply"/>
		    	</form>
	    	</field>
	   	</record>

	   	<record id="action_account_coda_import" model="ir.actions.act_window">
            <field name="name">Import Coda Statement</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">account.coda.import</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="target">new</field>
   			<field name="view_id" ref="account_coda_import_view"/>
        </record>

</data>
</openerp>
