<?xml version="1.0" ?>
<odoo>

	<record model="ir.ui.view" id="view_glasof_exporter_wizard">
		<field name="name">glasof.exporter.wizard</field>
		<field name="model">glasof.exporter.wizard</field>
		<field name="arch" type="xml">
			<form string="Export to Glasof" >
				<group>
					<group>
						<field name="date_start" required="1" />
					</group>
					<group>
						<field name="date_end" required="1" />
					</group>
				</group>
				<group>
					<field name="export_journals" />
					<field name="export_invoices" />
				</group>
				<group attrs="{'invisible': [('export_journals', '=', False)]}">
					<field name="seat_num" />
				</group>
				<group>
					<group attrs="{'invisible': [('export_journals', '=', False)]}">
						<field name="xls_journals_filename" invisible="1"/>
						<field name="xls_journals_binary" filename="xls_journals_filename" readonly="1" />
					</group>
					<group attrs="{'invisible': [('export_invoices', '=', False)]}">
						<field name="xls_invoices_filename" invisible="1"/>
						<field name="xls_invoices_binary" filename="xls_invoices_filename" readonly="1" />
					</group>
				</group>
				<footer>
					<button name="export" string="Generate XLS" type="object" class="oe_highlight" />
					or
					<button string="Close" class="oe_link" special="cancel" />
				</footer>
			</form>
		</field>
	</record>

	<record id="action_open_glasof_exporter" model="ir.actions.act_window">
		<field name="name">Export to Glasof</field>
		<field name="type">ir.actions.act_window</field>
		<field name="res_model">glasof.exporter.wizard</field>
		<field name="view_id" ref="view_glasof_exporter_wizard"/>
		<field name="view_type">form</field>
		<field name="view_mode">form</field>
		<field name="target">new</field>
	</record>

</odoo>
