[FIX] hr_skills: fix resume end date wrong selection

before this commit, in resume we are able to put end date less than start date
which is not possible in real life.
inside form view add daterange widget to start date field so user not able to
select end date less than start date. switch the position of Display Type and
Certification or Course field to show the additional field below the Display
type when Display type is selected.

task-3397726

closes odoo/odoo#128269

Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
This commit is contained in:
pash-odoo
2023-09-06 11:50:43 +00:00
parent 3a4bd36f1b
commit 133f4da844
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -47,8 +47,8 @@
<field name="display_type" required="1"/>
</group>
<group>
<field name="date_start" required="True"/>
<field name="date_end"/>
<field name="date_start" string="Duration" widget="daterange" options="{'end_date_field': 'date_end'}"/>
<field name="date_end" invisible="1"/>
</group>
</group>
<field name="description" placeholder="Description"/>
@@ -6,7 +6,7 @@
<field name="inherit_id" ref="hr_skills.resume_line_view_form"/>
<field eval="20" name="priority"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='line_type_id']" position="after">
<xpath expr="//field[@name='display_type']" position="after">
<field name="channel_id"
readonly="0"
invisible="display_type != 'course'"/>
@@ -6,7 +6,7 @@
<field name="inherit_id" ref="hr_skills.resume_line_view_form"/>
<field eval="20" name="priority"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='line_type_id']" position="after">
<xpath expr="//field[@name='display_type']" position="after">
<field name="survey_id"
domain="[('certification', '=', True)]"
readonly="0"