[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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user