[FIX] hr_skills_survey: UX changes

Prior to this commit the required employee field was hidden
on hr.resume.line form view. Which lead to validation error.

Moreover, on the same form view, on create the survey_id field was not
certification by default. The survey_id field has the
domain [('certification', '=', True)] on this view and this caused
inconsistency. The survey that we created from this form, was
not listed as one of the options.

After this commit the employee_id field is shown on hr.resume.line
form view and the survey_id, created from this view, will be
certification by default.

task-3522917

closes odoo/odoo#136751

Signed-off-by: Bertrand Dossogne (bedo) <bedo@odoo.com>
This commit is contained in:
sofiagvaladze
2023-10-11 17:01:59 +00:00
parent fb27d2b97e
commit 0525c5b847
@@ -12,6 +12,14 @@
readonly="0"
invisible="display_type != 'certification'"/>
</xpath>
<field name="employee_id" position="attributes">
<attribute name="invisible">0</attribute>
</field>
<field name="survey_id" position="attributes">
<attribute name="context">
{'default_certification': True}
</attribute>
</field>
</field>
</record>
</odoo>