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

        <record id="cdr_report_view" model="ir.ui.view">
            <field name="name">Compte de resultat Report</field>
            <field name="model">account.cdr.report</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
            	<form string='Compte de resultant'>
	               <field name="fiscalyear_id"/>
	               <separator colspan="4"/>
                    <group colspan="4" col="6">
                        <button special="cancel" string="Cancel" icon="gtk-cancel"/>
                        <button name="print_cdr_report" string="Print" type="object" icon="gtk-ok"/>
                    </group>
	             </form>
            </field>
        </record>

        <record id="action_account_cdr_report" model="ir.actions.act_window">
            <field name="name">Compte de resultat Report</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">account.cdr.report</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="cdr_report_view"/>
            <field name="target">new</field>
        </record>

        <record model="ir.values" id="action_account_cdr_report_values">
            <field name="model_id" ref="model_account_cdr_report" />
            <field name="object" eval="1" />
            <field name="name">Compte de resultat Report</field>
            <field name="key2">client_print_multi</field>
            <field name="value" eval="'ir.actions.act_window,' +str(ref('action_account_cdr_report'))" />
            <field name="key">action</field>
            <field name="model">account.move.line</field>
        </record>

    </data>
</openerp>