37 lines
1.9 KiB
XML
37 lines
1.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<record id="hr_appraisal_skills_view_form" model="ir.ui.view">
|
|
<field name="name">hr.appraisal.skill.view.form</field>
|
|
<field name="model">hr.appraisal.skill</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Skills">
|
|
<sheet>
|
|
<group>
|
|
<field name="skill_type_id" widget="selection_badge" string="Category"/>
|
|
<field name="skill_id" widget="selection_badge"
|
|
context="{'default_skill_type_id': skill_type_id}"
|
|
domain="[('skill_type_id', '=', skill_type_id)]"
|
|
invisible="not skill_type_id"/>
|
|
<field name="skill_level_id"
|
|
readonly="not skill_id" widget="selection_badge"
|
|
invisible="levels_count <= 1"
|
|
options="{'no_open': True, 'no_create': True}"
|
|
context="{'default_skill_type_id': skill_type_id}"/>
|
|
<label for="valid_from" string="Validity" class="me-1" invisible="not is_certification"/>
|
|
<div class="d-flex flex-row" invisible="not is_certification">
|
|
<field name="valid_from" nolabel="1" class="w-25" required="is_certification"/>
|
|
<label for="valid_to" string="To" class="mx-1"/>
|
|
<field name="valid_to" placeholder="indefinite" nolabel="1" class="w-25"/>
|
|
</div>
|
|
</group>
|
|
<div class="alert alert-warning ps-3" role="alert" invisible="not display_warning_message">
|
|
The end date must be after the start date.
|
|
</div>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|