mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-25 08:52:00 +02:00
19.0 vanilla
This commit is contained in:
parent
a1137a1456
commit
e1d89e11e3
2789 changed files with 1093187 additions and 605897 deletions
|
|
@ -7,49 +7,41 @@
|
|||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<sheet>
|
||||
<h1><field name="employee_id" readonly="1" options="{'no_open': True}"/></h1>
|
||||
<group>
|
||||
<group id="info">
|
||||
<field name="employee_ids" widget="many2many_tags"/>
|
||||
<field name="departure_reason_id" options="{'no_edit': True, 'no_create': True, 'no_open': True}"/>
|
||||
<field name="departure_date"/>
|
||||
</group>
|
||||
<group id="action">
|
||||
<!-- Override invisible="1" when inheriting -->
|
||||
<div class="o_td_label" id="activities_label" invisible="1">
|
||||
<div class="o_td_label" id="activities_label">
|
||||
<span class="o_form_label o_hr_form_label cursor-default">Close Activities</span>
|
||||
</div>
|
||||
<!-- Override invisible="1" when inheriting -->
|
||||
<div class="column" id="activities" invisible="1">
|
||||
</div>
|
||||
<separator colspan="2"/>
|
||||
<div class="o_td_label" id="label_info">
|
||||
<span class="o_form_label o_hr_form_label cursor-default">HR Info</span>
|
||||
</div>
|
||||
<div class="column" id="info">
|
||||
<div><field name="archive_private_address"/><label for="archive_private_address"/></div>
|
||||
<div class="column" id="activities">
|
||||
<div>
|
||||
<field name="set_date_end"/><label for="set_date_end" string="Contract"/>
|
||||
</div>
|
||||
<div invisible="not is_user_employee">
|
||||
<field name="remove_related_user"/>
|
||||
<label for="remove_related_user" string="Related User"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column" id="info"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<div id="detailed_reason" colspan="2">
|
||||
<span class="o_form_label o_hr_form_label cursor-default">Detailed Reason</span>
|
||||
<field name="departure_description"/>
|
||||
<field name="departure_description" placeholder="Give more details about the reason of archiving the employee."/>
|
||||
</div>
|
||||
</group>
|
||||
</sheet>
|
||||
<footer>
|
||||
<button name="action_register_departure" string="Apply" type="object" class="oe_highlight" data-hotkey="q"/>
|
||||
<button string="Discard" class="btn-secondary" special="cancel" data-hotkey="z"/>
|
||||
<button string="Discard" class="btn-secondary" special="cancel" data-hotkey="x"/>
|
||||
</footer>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="hr_departure_wizard_action" model="ir.actions.act_window">
|
||||
<field name="name">Register Departure</field>
|
||||
<field name="res_model">hr.departure.wizard</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue