<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="homework_location_wizard_view_form" model="ir.ui.view">
        <field name="name">homework.location.wizard.view.form</field>
        <field name="model">homework.location.wizard</field>
        <field name="arch" type="xml">
            <form string="Location">
                <group>
                    <label for="date"/>
                    <div class="o_row w-100"> 
                        <field name="date"/>
                    </div>
                    <label for="weekly"/>
                    <div class="o_row w-100"> 
                        <field name="weekly" class="oe_inline"/> 
                        <span class="w-100">
                            Repeat every <field name="day_week_string" class="oe_inline"/>
                        </span>
                    </div>
                    <field name="work_location_id"/>
                </group>
                <footer>
                    <button name="set_employee_location" type="object" class="btn-primary" string="Set Location" />
                </footer>
            </form>
        </field>
    </record>

    <record id="set_location_wizard_action" model="ir.actions.act_window">
        <field name="name">Set Location</field>
        <field name="res_model">homework.location.wizard</field>
        <field name="view_mode">form</field>
        <field name="view_id" ref="homework_location_wizard_view_form"/>
        <field name="binding_model_id" ref="model_homework_location_wizard"/>
        <field name="target">new</field>
    </record>
</odoo>
