| 1 |
<?xml version="1.0" encoding="utf-8" ?> |
| 2 |
<odoo> |
| 3 |
<record id="homework_location_wizard_view_form" model="ir.ui.view"> |
| 4 |
<field name="name">homework.location.wizard.view.form</field> |
| 5 |
<field name="model">homework.location.wizard</field> |
| 6 |
<field name="arch" type="xml"> |
| 7 |
<form string="Location"> |
| 8 |
<group> |
| 9 |
<label for="date"/> |
| 10 |
<div class="o_row w-100"> |
| 11 |
<field name="date"/> |
| 12 |
</div> |
| 13 |
<label for="weekly"/> |
| 14 |
<div class="o_row w-100"> |
| 15 |
<field name="weekly" class="oe_inline"/> |
| 16 |
<span class="w-100"> |
| 17 |
Repeat every <field name="day_week_string" class="oe_inline"/> |
| 18 |
</span> |
| 19 |
</div> |
| 20 |
<field name="work_location_id"/> |
| 21 |
</group> |
| 22 |
<footer> |
| 23 |
<button name="set_employee_location" type="object" class="btn-primary" string="Set Location" /> |
| 24 |
</footer> |
| 25 |
</form> |
| 26 |
</field> |
| 27 |
</record> |
| 28 |
|
| 29 |
<record id="set_location_wizard_action" model="ir.actions.act_window"> |
| 30 |
<field name="name">Set Location</field> |
| 31 |
<field name="res_model">homework.location.wizard</field> |
| 32 |
<field name="view_mode">form</field> |
| 33 |
<field name="view_id" ref="homework_location_wizard_view_form"/> |
| 34 |
<field name="binding_model_id" ref="model_homework_location_wizard"/> |
| 35 |
<field name="target">new</field> |
| 36 |
</record> |
| 37 |
</odoo> |