<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="resume_survey_line_view_form" model="ir.ui.view">
        <field name="name">hr.resume.line.form</field>
        <field name="model">hr.resume.line</field>
        <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='display_type']" position="after">
                <field name="survey_id"
                    domain="[('certification', '=', True)]"
                    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>
