| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <odoo> |
| 3 | <record id="survey_survey_view_form" model="ir.ui.view"> |
| 4 | <field name="name">survey.survey.view.form.inherit.recruitment</field> |
| 5 | <field name="model">survey.survey</field> |
| 6 | <field name="inherit_id" ref="survey.survey_survey_view_form"/> |
| 7 | <field name="mode">primary</field> |
| 8 | <field name="arch" type="xml"> |
| 9 | <xpath expr="//field[@name='survey_type']" position="attributes"> |
| 10 | <attribute name="invisible">True</attribute> |
| 11 | </xpath> |
| 12 | <button name="action_send_survey" position="attributes"> |
| 13 | <attribute name="invisible">True</attribute> |
| 14 | </button> |
| 15 | <button name="action_start_session" position="attributes"> |
| 16 | <attribute name="invisible">True</attribute> |
| 17 | </button> |
| 18 | <button name="action_archive" position="attributes"> |
| 19 | <attribute name="invisible">True</attribute> |
| 20 | </button> |
| 21 | <xpath expr="//group[@name='scoring']" position="attributes"> |
| 22 | <attribute name="invisible">True</attribute> |
| 23 | </xpath> |
| 24 | <xpath expr="//label[@for='is_time_limited']" position="attributes"> |
| 25 | <attribute name="invisible">True</attribute> |
| 26 | </xpath> |
| 27 | <xpath expr="//div[@name='is_time_limited']" position="attributes"> |
| 28 | <attribute name="invisible">True</attribute> |
| 29 | </xpath> |
| 30 | <xpath expr="//field[@name='scoring_type']" position="attributes"> |
| 31 | <attribute name="invisible">True</attribute> |
| 32 | </xpath> |
| 33 | <xpath expr="//label[@for='certification']" position="attributes"> |
| 34 | <attribute name="invisible">True</attribute> |
| 35 | </xpath> |
| 36 | <xpath expr="//div[@name='certification']" position="attributes"> |
| 37 | <attribute name="invisible">True</attribute> |
| 38 | </xpath> |
| 39 | <xpath expr="//group[@name='live_session']" position="attributes"> |
| 40 | <attribute name="invisible">True</attribute> |
| 41 | </xpath> |
| 42 | </field> |
| 43 | </record> |
| 44 | |
| 45 | <record id="survey_survey_view_kanban" model="ir.ui.view"> |
| 46 | <field name="name">survey.survey.view.kanban.inherit.recruitment</field> |
| 47 | <field name="model">survey.survey</field> |
| 48 | <field name="inherit_id" ref="survey.survey_survey_view_kanban"/> |
| 49 | <field name="mode">primary</field> |
| 50 | <field name="arch" type="xml"> |
| 51 | <button name="action_send_survey" position="attributes"> |
| 52 | <attribute name="invisible">True</attribute> |
| 53 | </button> |
| 54 | <button name="action_start_session" position="attributes"> |
| 55 | <attribute name="invisible">True</attribute> |
| 56 | </button> |
| 57 | </field> |
| 58 | </record> |
| 59 | |
| 60 | <record id="survey_survey_action_recruitment" model="ir.actions.act_window"> |
| 61 | <field name="name">Interviews</field> |
| 62 | <field name="type">ir.actions.act_window</field> |
| 63 | <field name="res_model">survey.survey</field> |
| 64 | <field name="domain">[('survey_type', '=', 'recruitment')]</field> |
| 65 | <field name="view_ids" eval="[(5, 0, 0), |
| 66 | (0, 0, {'view_mode': 'kanban', 'view_id': ref('hr_recruitment_survey.survey_survey_view_kanban')}), |
| 67 | (0, 0, {'view_mode': 'form', 'view_id': ref('hr_recruitment_survey.survey_survey_view_form')}), |
| 68 | ]"/> |
| 69 | <field name="view_mode">kanban,list,activity,form</field> |
| 70 | <field name="context">{ |
| 71 | 'default_survey_type': 'recruitment', |
| 72 | } |
| 73 | </field> |
| 74 | <field name="help" type="html"> |
| 75 | <p class="o_view_nocontent_smiling_face"> |
| 76 | Add a new survey |
| 77 | </p><p> |
| 78 | You can create surveys used for recruitments. Design easily your interview, |
| 79 | send invitations and analyze answers. |
| 80 | </p> |
| 81 | </field> |
| 82 | </record> |
| 83 | |
| 84 | <menuitem |
| 85 | id="menu_hr_recruitment_config_surveys" |
| 86 | name="Interviews" |
| 87 | action="survey_survey_action_recruitment" |
| 88 | parent="hr_recruitment.menu_hr_recruitment_configuration" |
| 89 | sequence="50" |
| 90 | groups="hr_recruitment.group_hr_recruitment_manager"/> |
| 91 | </odoo> |