<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record id="view_wizard_quality_check_tree" model="ir.ui.view">
            <field name="name">Results of Quality Checks</field>
            <field name="model">module.quality.check</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Result">
                    <field name="name"/>
                    <field name="final_score"/>
                </tree>
            </field>
        </record>

        <record id="view_wizard_quality_check_form" model="ir.ui.view">
            <field name="name">Results of Quality Checks</field>
            <field name="model">module.quality.check</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Result">
                    <field name="name" readonly="1" search="1"/>
                    <field name="final_score" readonly="1" search="1"/>
                    <separator colspan="4" string="Tests"/>
                    <field name="check_detail_ids" nolabel="1" colspan="4" height="350" width="800" readonly="1">
                   	</field>
                </form>
            </field>
        </record>
        <record id="view_wizard_quality_detail_form" model="ir.ui.view">
            <field name="name">Results of Quality Checks with detail</field>
            <field name="model">module.quality.detail</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Result">
                	<notebook>
                        <page string="Summary">
                            <field name="name" readonly="1"/>
                            <field name="score" readonly="1"/>
                            <field name="note" readonly="1" colspan="4"/>
                            <field name="summary" widget="text_wiki" nolabel="1" colspan="4" height="350" width="800" readonly="1"/>

                            <field name="ponderation" readonly="1"/>
                            <field name="state" readonly="1"/>
                        </page>
                        <page string="Detail">
	                        <button name="%(quality_detail_save)d" string="Save Report" type="action"/>
                            <field name="detail" widget="text_html" nolabel="1" colspan="4" readonly="1"/>
                        </page>
                    </notebook>
                </form>
            </field>
        </record>

        <record id="view_wizard_quality_detail_tree" model="ir.ui.view">
            <field name="name">Results of Quality Checks with detail</field>
            <field name="model">module.quality.detail</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Result" limit="80" min_rows="9" >
                    <field name="name" required="1"/>
                    <field name="state"/>
                    <field name="score" required="1"/>
                    <field name="ponderation"/>
                    <field name="message" />
                </tree>
            </field>
        </record>

    </data>
</openerp>