1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/appointment/wizard/appointment_manage_leaves.xml
2024-12-10 09:04:09 +07:00

27 lines
1.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="appointment_manage_leaves_view_form" model="ir.ui.view">
<field name="name">appointment.manage.leaves.view.form</field>
<field name="model">appointment.manage.leaves</field>
<field name="arch" type="xml">
<form>
<group>
<!-- TODO: remove and clean calendar_id field in master -->
<field name="calendar_id" invisible="1"/>
<field name="calendar_id" placeholder="Pick a Work Schedule..." options="{'no_create': True}"
invisible="1" groups="base.group_no_one"/>
<field name="appointment_resource_ids" widget="many2many_tags" options="{'no_create': True}"
placeholder="Restrict to specific Resources" required="1"/>
<field name="leave_start_dt" string="Dates" widget="daterange" options="{'end_date_field': 'leave_end_dt'}"/>
<field name="leave_end_dt" invisible="1"/>
<field name="reason" placeholder="e.g. Inventory count and valuation"/>
</group>
<footer>
<button string="Create Closing Day(s)" class="btn-primary" type="object" name="action_create_leave"/>
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
</record>
</odoo>