File: homework_location_wizard.xml

package info (click to toggle)
odoo 18.0.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 878,716 kB
  • sloc: javascript: 927,937; python: 685,670; xml: 388,524; sh: 1,033; sql: 415; makefile: 26
file content (37 lines) | stat: -rw-r--r-- 1,660 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?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" invisible="not user_can_edit"/>
                    <div class="o_row w-100" invisible="not user_can_edit">
                        <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>