Improve the departure wizard form view aswell as the flow when using it. Removes the confirmation dialog when archiving an employee to directly display the departure wizard. Also changes departure reason to an html field instead of pure text. Task ID: 2575279 closes odoo/odoo#72367 Related: odoo/enterprise#19116 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
23 lines
1.0 KiB
XML
23 lines
1.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="hr_departure_wizard_view_form" model="ir.ui.view">
|
|
<field name="name">hr.departure.wizard.view.form.extend</field>
|
|
<field name="model">hr.departure.wizard</field>
|
|
<field name="inherit_id" ref="hr.hr_departure_wizard_view_form" />
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//div[@id='activities_label']" position="attributes">
|
|
<attribute name="invisible">0</attribute>
|
|
</xpath>
|
|
<xpath expr="//div[@id='activities']" position="attributes">
|
|
<attribute name="invisible">0</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='departure_date']" position="replace">
|
|
<field name="departure_date" string="Contract End Date"/>
|
|
</xpath>
|
|
<xpath expr="//div[@id='activities']" position="inside">
|
|
<div><field name="set_date_end"/><label for="set_date_end" string="Contract"/></div>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|