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

        <record id="view_entity_refused_reason_wizard_form" model="ir.ui.view">
            <field name="name">view.entity.refused.reason.wizard.form</field>
            <field name="model">entity.refused.reason.wizard</field>
            <field name="arch" type="xml">
                <form string="شاشة سبب الرفض">
                    <sheet>
                        <group>
                            <field name="entity_id" invisible="1"/>
                            <field name="suspend_reason_id" required="1"/>
                            <field name="refused_reason"/>
                        </group>

                        <footer>
                            <button name="create_action" type="object" string="Refused" class="oe_highlight"/>
                            or
                            <button special="cancel" string="Cancel"/>
                        </footer>
                    </sheet>
                </form>

            </field>
        </record>
        <record id="view_entity_final_refused_reason_wizard_form" model="ir.ui.view">
            <field name="name">view.entity.refused.reason.wizard.form</field>
            <field name="model">entity.refused.reason.wizard</field>
            <field name="arch" type="xml">
                <form string="شاشة سبب الرفض">
                    <sheet>
                        <group>
                            <field name="entity_id" invisible="1"/>
                            <field name="refused_reason"/>
                        </group>

                        <footer>
                            <button name="final_refuse" type="object" string="Refused" class="oe_highlight"/>
                            or
                            <button special="cancel" string="Cancel"/>
                        </footer>
                    </sheet>
                </form>

            </field>
        </record>

        <record id="view_entity_return_reason_wizard_form" model="ir.ui.view">
            <field name="name">view.entity.return.reason.wizard.form</field>
            <field name="model">entity.return.reason.wizard</field>
            <field name="arch" type="xml">
                <form string="سبب الإرجاع">
                    <sheet>
                        <group>
                            <field name="entity_id" invisible="1"/>
                            <field name="suspend_reason_id"/>
                        </group>
                        <group>
                            <field name="target_state" invisible="1"/>
                            <field name="return_reason"  no_label="1"/>
                        </group>
                        <footer>
                            <button name="action_confirm_return" type="object" string="Retrun" class="oe_highlight"/>
                            or
                            <button special="cancel" string="Cancel"/>
                        </footer>
                    </sheet>
                </form>

            </field>
        </record>
<!--        <record id="view_grant_refused_reason_wizard_form" model="ir.ui.view">-->
<!--            <field name="name">view.entity.refused.reason.wizard.form</field>-->
<!--            <field name="model">grant.refused.reason.wizard</field>-->
<!--            <field name="arch" type="xml">-->
<!--                <form string="شاشة سبب الرفض">-->
<!--                    <sheet>-->
<!--                        <group>-->
<!--                            <field name="entity_id" invisible="1"/>-->
<!--                            <field name="refused_reason"/>-->
<!--                        </group>-->

<!--                        <footer>-->
<!--                            <button name="create_action" type="object" string="Refused" class="oe_highlight"/>-->
<!--                            or-->
<!--                            <button special="cancel" string="Cancel"/>-->
<!--                        </footer>-->
<!--                    </sheet>-->
<!--                </form>-->

<!--            </field>-->
<!--        </record>-->
        <!--Add by fatima 19/6/2019-->
<!--        <record id="view_grant_first_refused_reason_wizard_form" model="ir.ui.view">-->
<!--            <field name="name">view.entity.first.refused.reason.wizard.form</field>-->
<!--            <field name="model">grant.first.refused.reason.wizard</field>-->
<!--            <field name="arch" type="xml">-->
<!--                <form string="شاشة سبب الرفض">-->
<!--                    <sheet>-->
<!--                        <group>-->
<!--                            <field name="entity_id" invisible="1"/>-->
<!--                                                      <field name="refused_reason"/>-->
<!--                             &lt;!&ndash; <field name="last_edit_date" /> &ndash;&gt;-->
<!--                        </group>-->

<!--                        <footer>-->
<!--                            <button name="create_action" type="object" string="Refused" class="oe_highlight"/>-->
<!--                            or-->
<!--                            <button special="cancel" string="Cancel"/>-->
<!--                        </footer>-->
<!--                    </sheet>-->
<!--                </form>-->

<!--            </field>-->
<!--        </record>-->


    </data>
</openerp>
