sequence="40" />
<act_window
- domain="[('applicant_id', '=', active_id)]"
id="act_hr_applicant_to_meeting"
name="Meetings"
res_model="crm.meeting"
view_type="form"/>
# ------------------------------------------------------
- # Job Categories
- # ------------------------------------------------------
-
- <record id="hr_job_categ_action" model="ir.actions.act_window">
- <field name="name">Applicant Categories</field>
- <field name="res_model">crm.case.categ</field>
- <field name="view_type">form</field>
- <field name="view_id" ref="crm.crm_case_categ_tree-view"/>
- <field name="domain">[('object_id.model', '=', 'hr.applicant')]</field>
- <field name="context" eval="{'object_id': ref('model_hr_applicant')}"/>
- </record>
- # ------------------------------------------------------
# Stage
# ------------------------------------------------------
<record id="hr_job_stage_act" model="ir.actions.act_window">
# Jobs
# ------------------------------------------------------
+ <!-- Applicant Read/Unread actions -->
+ <record id="actions_server_applicant_unread" model="ir.actions.server">
+ <field name="name">Mark unread</field>
+ <field name="condition">True</field>
+ <field name="type">ir.actions.server</field>
+ <field name="model_id" ref="model_hr_applicant"/>
+ <field name="state">code</field>
+ <field name="code">self.message_check_and_set_unread(cr, uid, context.get('active_ids'), context=context)</field>
+ </record>
+ <record id="action_applicant_unread" model="ir.values">
+ <field name="name">action_project_unread</field>
+ <field name="action_id" ref="actions_server_applicant_unread"/>
+ <field name="value" eval="'ir.actions.server,' + str(ref('actions_server_applicant_unread'))" />
+ <field name="key">action</field>
+ <field name="model_id" ref="model_hr_applicant" />
+ <field name="model">hr.applicant</field>
+ <field name="key2">client_action_multi</field>
+ </record>
+
+ <record id="actions_server_applicant_read" model="ir.actions.server">
+ <field name="name">Mark read</field>
+ <field name="condition">True</field>
+ <field name="type">ir.actions.server</field>
+ <field name="model_id" ref="model_hr_applicant"/>
+ <field name="state">code</field>
+ <field name="code">self.message_check_and_set_read(cr, uid, context.get('active_ids'), context=context)</field>
+ </record>
+ <record id="action_applicant_read" model="ir.values">
+ <field name="name">action_project_read</field>
+ <field name="action_id" ref="actions_server_applicant_read"/>
+ <field name="value" eval="'ir.actions.server,' + str(ref('actions_server_applicant_read'))" />
+ <field name="key">action</field>
+ <field name="model_id" ref="model_hr_applicant" />
+ <field name="model">hr.applicant</field>
+ <field name="key2">client_action_multi</field>
+ </record>
+
<record model="ir.ui.view" id="crm_case_tree_view_job">
<field name="name">Applicants</field>
<field name="model">hr.applicant</field>
<field name="arch" type="xml">
<form string="Jobs - Recruitment Form" version="7.0">
<header>
- <button name="%(action_hr_recruitment_hired_employee)d" string="Hire" type="action"
- states="open,pending"/>
- <button name="case_open" string="Open" type="object"
- states="draft,pending"/>
- <button name="case_pending" string="Pending" type="object"
- states="open"/>
- <button name="case_reset" string="Reset to New" type="object"
- states="done,cancel"/>
+ <button name="case_close_with_emp" string="Hire" type="object"
+ states="open,pending" class="oe_highlight"/>
<button name="case_cancel" string="Refuse" type="object"
- states="draft,open,pending"/>
- <button name="stage_previous" string="Previous" type="object"
- states="open" icon="gtk-go-back"/>
- <button name="stage_next" string="Next" type="object"
- states="open" icon="gtk-go-forward"/>
- <field name="stage_id" widget="statusbar"/>
+ states="draft,open,pending" class="oe_highlight"/>
+ <field name="stage_id" widget="statusbar" clickable="True" on_change="onchange_stage_id(stage_id)"/>
</header>
<sheet>
<div class="oe_right oe_button_box">
<label for="name" class="oe_edit_only"/>
<h1><field name="name"/></h1>
<label for="partner_name" class="oe_edit_only"/>
- <h2><field name="partner_name"/></h2>
- <field name="type_id" placeholder="Degree"/>
+ <h2>
+ <field name="partner_name" class="oe_inline"/>
+ </h2>
</div>
-
<group>
<group>
- <field name="user_id"/>
- <field name="title_action"/>
- <field name="date_action"/>
+ <field name="partner_id"
+ on_change="onchange_partner_id(partner_id, email_from)"/>
+ <field name="email_from" widget="email"/>
+ <field name="partner_phone"/>
+ <field name="partner_mobile"/>
+ <field name="type_id" placeholder="Degree"/>
</group>
<group>
- <field name="job_id" on_change="onchange_job(job_id)"/>
- <field name="priority" string="Appreciation"/>
+ <field name="user_id"/>
+ <label for="title_action"/>
+ <div>
+ <field name="date_action"/> -
+ <field name="title_action" class="oe_inline" placeholder="Call for proposal"/>
+ </div>
+ <field name="priority"/>
+ <field name="state" invisible="1"/>
+ <field name="source_id"/>
+ <field name="reference"/>
+ </group>
+ <group string="Job">
<field name="survey" invisible="1"/>
<field name="response" invisible="1"/>
- <field name="department_id" widget="selection" on_change="onchange_department_id(department_id)"/>
- <field name="state" groups="base.group_no_one"/>
+ <field name="job_id" on_change="onchange_job(job_id)"/>
+ <field name="department_id" on_change="onchange_department_id(department_id)"/>
+ <label for="availability"/>
+ <div>
+ <field name="availability" class="oe_inline"/> <label string="Day(s)" class="oe_inline"/>
+ </div>
+ </group>
+ <group string="Contract">
+ <label for="salary_expected"/>
+ <div>
+ <field name="salary_expected" class="oe_inline"/>,
+ <field name="salary_expected_extra" class="oe_inline" placeholder="Extra advantages..."/>
+ </div>
+ <label for="salary_proposed"/>
+ <div>
+ <field name="salary_proposed" class="oe_inline"/>,
+ <field name="salary_proposed_extra" class="oe_inline" placeholder="Extra advantages..."/>
+ </div>
</group>
</group>
- <notebook>
- <page string="Application">
- <group>
- <group string="Contact">
- <label for="partner_id"/>
- <div>
- <field name="partner_id" class="oe_inline"
- on_change="onchange_partner_id(partner_id, email_from)"/>
- <button class="oe_inline"
- string="Create" help="Create a new contact for this applicant" icon="gtk-index"
- name="%(action_hr_recruitment_partner_create)d" type="action"
- attrs="{'invisible':[('partner_id','!=',False)]}"/>
- </div>
- <field name="email_from" widget="email"/>
- <field name="partner_phone"/>
- <field name="partner_mobile"/>
- </group>
- <group string="Reference">
- <field name="source_id"/>
- <field name="reference"/>
- </group>
- <group string="Contract">
- <field name="salary_expected"/>
- <field name="salary_expected_extra"/>
- <field name="salary_proposed"/>
- <field name="salary_proposed_extra"/>
- <field name="availability"/>
- </group>
- </group>
- <separator string="Details"/>
- <field name="description"/>
- </page>
- </notebook>
+ <separator string="Application Summary"/>
+ <field name="description" placeholder="Feedback of interviews..."/>
</sheet>
- <footer>
- <field name="message_ids" widget="ThreadView"/>
- </footer>
+ <div class="oe_chatter">
+ <field name="message_ids" widget="mail_thread"/>
+ </div>
</form>
</field>
</record>
<field name="type">search</field>
<field name="arch" type="xml">
<search string="Search Jobs">
- <filter icon="terp-mail-message-new"
- string="Inbox" help="Unread messages"
- name="needaction_pending"
- domain="[('needaction_pending','=',True)]"/>
- <separator orientation="vertical"/>
- <filter icon="terp-document-new" string="New" name="filter_new"
+ <filter icon="terp-mail-message-new"
+ string="Inbox" help="Unread messages"
+ name="needaction_pending"
+ domain="[('needaction_pending','=',True)]"/>
+ <separator orientation="vertical"/>
+ <filter icon="terp-document-new" string="New" name="filter_new"/>
+ <field name="partner_name" filter_domain="['|','|',('name','ilike',self),('partner_name','ilike',self),('email_from','ilike',self)]" string="Subject / Applicant"/>
+ <separator orientation="vertical"/>
+ <filter icon="terp-document-new" string="New"
domain="[('state','=','draft')]"
- help="All Initial Jobs"
- />
- <filter icon="terp-camera_test" string="In Progress" name="filter_inprogress"
+ help="All Initial Jobs"/>
+ <filter icon="terp-camera_test" string="In Progress"
domain="[('state','=','open')]"
- help="Open Jobs"
- />
+ help="Open Jobs"/>
<filter icon="terp-gtk-media-pause" string="Pending"
domain="[('state','=','pending')]"
- help="Pending Jobs"
- />
- <separator orientation="vertical"/>
+ help="Pending Jobs"/>
+ <filter string="Unassigned Recruitments" domain="[('user_id','=',False)]" help="Unassigned Recruitments" icon="terp-personal-"/>
<filter icon="terp-gtk-jump-to-ltr" string="Next Actions"
context="{'invisible_next_action':False, 'invisible_next_date':False}"
domain="[('date_action','<>',False)]"
help="Filter and view on next actions and date"/>
<separator orientation="vertical"/>
- <field name="partner_name" filter_domain="['|','|',('name','ilike',self),('partner_name','ilike',self),('email_from','ilike',self)]" string="Subject / Applicant"/>
<field name="job_id" widget="selection"/>
- <field name="user_id">
- <filter domain="[('user_id','=',False)]" help="Unassigned Recruitments" icon="terp-personal-" />
- </field>
+ <field name="user_id"/>
<newline/>
<group expand="0" string="Group By...">
<filter string="Responsible" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
<field name="arch" type="xml">
<kanban default_group_by="stage_id">
<field name="color"/>
- <field name="state" groups="base.group_no_one"/>
<field name="priority"/>
<field name="survey"/>
<field name="user_id"/>
<field name="type_id"/>
<field name="job_id"/>
<field name="title_action"/>
- <templates>
- <t t-name="kanban-box">
- <t t-if="record.priority.raw_value == '1'" t-set="border">oe_kanban_color_green</t>
- <div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_card oe_kanban_project oe_kanban_auto_height">
- <div class="oe_dropdown_toggle oe_dropdown_kanban">
- <span class="oe_e">i</span>
- <ul class="oe_dropdown_menu">
- <li><a type="edit">Edit...</a></li>
- <li><a type="delete">Delete</a></li>
- <li><ul class="oe_kanban_colorpicker" data-field="color"/></li>
- </ul>
+ <field name="department_id"/>
+ <templates>
+ <t t-name="kanban-tooltip">
+ <ul class="oe_kanban_tooltip">
+ <li t-if="record.type_id.raw_value"><b>Degree:</b> <field name="type_id"/></li>
+ <li t-if="record.partner_id.raw_value"><b>Contact:</b> <field name="partner_id"/></li>
+ <li t-if="record.department_id.raw_value"><b>Departement:</b> <field name="department_id"/></li>
+ </ul>
+ </t>
+ <t t-name="kanban-box">
+ <div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_card oe_kanban_global_click">
+ <div class="oe_dropdown_toggle oe_dropdown_kanban">
+ <span class="oe_e">i</span>
+ <ul class="oe_dropdown_menu">
+ <li><a type="edit">Edit...</a></li>
+ <li><a type="delete">Delete</a></li>
+ <li><a name="action_makeMeeting" type="object">Schedule Interview</a></li>
+ <li><ul class="oe_kanban_colorpicker" data-field="color"/></li>
+ </ul>
+ </div>
+ <div class="oe_kanban_content" tooltip="kanban-tooltip">
+ <div>
+ <b><field name="name"/></b><br/>
+ <field name="job_id"/><br/>
+ <t t-if="record.partner_mobile.raw_value">Mobile: <field name="partner_mobile"/><br/></t>
+ <t t-if="record.title_action.raw_value"><field name="title_action"/><br/></t>
+ <field name="date_action"/>
</div>
- <div class="oe_kanban_content" >
- <h3 class="oe_kanban_ellipsis"><field name="name"/>
- </h3>
- <div style="margin-bottom:2;padding-top:5px;white-space: nowrap;" >
- <field name="partner_name"/>
- <div class="oe_kanban_right">
- <span class="oe_kanban_highlight">
- <t t-set="priority" t-value="record.priority.raw_value || 5"/>
- <a type="object" name="set_priority" args="['3']" t-if="priority gt 3">
- <img src="/web/static/src/img/icons/star-off.png" width="16" height="16"/>
- </a>
- <a type="object" name="set_priority" args="['5']" t-if="priority lte 3">
- <img t-attf-src="/web/static/src/img/icons/star-#{priority lte 3 ? 'on' : 'off'}.png" width="16" height="16"/>
- </a>
- <a type="object" name="set_priority" args="['2']">
- <img t-attf-src="/web/static/src/img/icons/star-#{priority lte 2 ? 'on' : 'off'}.png" width="16" height="16"/>
- </a>
- <a type="object" name="set_priority" args="['1']">
- <img t-attf-src="/web/static/src/img/icons/star-#{priority == 1 ? 'on' : 'off'}.png" width="16" height="16"/>
- </a>
- </span>
- </div>
- </div>
- <div style="white-space: nowrap;" >
- <div t-if="record.type_id.raw_value">
- (<field name="type_id"/>)
- </div>
- </div>
- <div style="padding-top:5px;white-space: nowrap;" >
- <t t-if="record.job_id.raw_value">Applied for <field name="job_id" /></t>
- </div>
- <div style="padding-top:5px;white-space: nowrap;" >
- <t t-if="record.title_action.raw_value">
- <field name="title_action" /> on
- <field name="date_action" />
- </t>
- </div>
- <div align="left" width="22" style="padding-top:5px;white-space: nowrap;" >
- <div align="right">
- <img t-att-src="kanban_image('res.users', 'avatar', record.user_id.raw_value[0])" t-att-title="record.user_id.value" width="24" height="24" class="oe_kanban_avatar"/>
- </div>
- </div>
+ <div class="oe_kanban_right">
+ <t t-set="priority" t-value="record.priority.raw_value || 5"/>
+ <a type="object" name="set_priority" args="['3']" t-if="priority gt 3">
+ <img src="/web/static/src/img/icons/star-off.png" width="16" height="16" title="Good"/>
+ </a>
+ <a type="object" name="set_priority" args="['5']" t-if="priority lte 3">
+ <img t-attf-src="/web/static/src/img/icons/star-#{priority lte 3 ? 'on' : 'off'}.png" width="16" height="16" title="Good"/>
+ </a>
+ <a type="object" name="set_priority" args="['2']">
+ <img t-attf-src="/web/static/src/img/icons/star-#{priority lte 2 ? 'on' : 'off'}.png" width="16" height="16" title="Very Good"/>
+ </a>
+ <a type="object" name="set_priority" args="['1']">
+ <img t-attf-src="/web/static/src/img/icons/star-#{priority == 1 ? 'on' : 'off'}.png" width="16" height="16" title="Excellent"/>
+ </a>
+ <img t-att-src="kanban_image('res.users', 'avatar', record.user_id.raw_value[0])" t-att-title="record.user_id.value" width="24" height="24" class="oe_kanban_avatar"/>
</div>
</div>
- </t>
- </templates>
- </kanban>
- </field>
- </record>
+ <div class="oe_clear"></div>
+ </div>
+ </t>
+ </templates>
+ </kanban>
+ </field>
+ </record>
# ------------------------------------------------------
# HR Job
<field name="type">form</field>
<field name="inherit_id" ref="hr.view_hr_job_form"/>
<field name="arch" type="xml">
- <field name="expected_employees" version="7.0" position="after">
- <label for="survey_id" />
- <div>
- <field name="survey_id" class="oe_inline"/>
- <button class="oe_inline"
- string="Interview" icon="gtk-print"
- name="action_print_survey" type="object"
- attrs="{'invisible':[('survey_id','=',False)]}"/>
- </div>
+ <field name="no_of_recruitment" version="7.0" position="after">
+ <label for="survey_id" />
+ <div>
+ <field name="survey_id" class="oe_inline"/>
+ <button class="oe_inline"
+ string="Interview" icon="gtk-print"
+ name="action_print_survey" type="object"
+ attrs="{'invisible':[('survey_id','=',False)]}"/>
+ </div>
</field>
</field>
</record>
action="hr_recruitment_source_action"
sequence="10" groups="base.group_no_one"/>
- <record model="ir.ui.view" id="crm_meeting_form_view">
- <field name="name">CRM - Meetings Form</field>
- <field name="model">crm.meeting</field>
- <field name="type">form</field>
- <field name="inherit_id" ref="crm.crm_case_form_view_meet"/>
- <field name="arch" type="xml">
- <field name="partner_id" position="before">
- <field name="applicant_id" attrs="{'invisible': [('categ_id','!=',%(hr_recruitment.categ_meet_interview)d)]}"/>
- </field>
- <field name="partner_id" position="attributes">
- <attribute name="attrs">{'invisible': [('categ_id','=',%(hr_recruitment.categ_meet_interview)d)]}</attribute>
- </field>
- <field name="section_id" position="attributes">
- <attribute name="attrs">{'invisible': [('categ_id','=',%(hr_recruitment.categ_meet_interview)d)]}</attribute>
- </field>
- </field>
- </record>
-
</data>
</openerp>