<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="hr_employee_cv_wizard_view_form" model="ir.ui.view">
        <field name="name">hr.employee.cv.wizard.view.form</field>
        <field name="model">hr.employee.cv.wizard</field>
        <field name="arch" type="xml">
            <form string="Print Resume">
                <field name="can_show_others" invisible="1"/>
                <field name="can_show_skills" invisible="1"/>
                <group>
                    <group>
                        <field name="employee_ids" widget="many2many_tags" invisible="1"/>
                        <label for="color_primary" string="Colors"/>
                        <div class="d-flex flex-row">
                            <field name="color_primary" widget="color" nolabel="1" style="width: 35px;"/>
                            <field name="color_secondary" widget="color" nolabel="1"/>
                        </div>
                        <field name="show_contact"/>
                        <field name="show_others" invisible="not can_show_others"/>
                        <field name="show_skills" invisible="not can_show_skills"/>
                    </group>
                </group>
                <footer>
                    <button name="action_validate" string="Print" type="object" class="oe_highlight" data-hotkey="q"/>
                    <button string="Discard" special="cancel" data-hotkey="x" class="btn-secondary"/>
                </footer>
            </form>
        </field>
    </record>

    <record id="action_hr_employee_cv_wizard" model="ir.actions.act_window">
        <field name="name">Print Resume</field>
        <field name="res_model">hr.employee.cv.wizard</field>
        <field name="view_mode">form</field>
        <field name="context">{'default_employee_ids': active_ids}</field>
        <field name="target">new</field>
    </record>
</odoo>
