[Merge]>> Added Launch Recruitment/Done Recruitment and Print Interview buttons.>>typo in recritment. >> Fixed the issue that when we group_by with status in Job postions it is showing the state 'open' rather than Recruitment.
bzr revid: vja@tinyerp.com-20130517091741-i55373b71igwg5ze
This commit is contained in:
+2
-2
@@ -117,7 +117,7 @@ class hr_job(osv.osv):
|
||||
'requirements': fields.text('Requirements'),
|
||||
'department_id': fields.many2one('hr.department', 'Department'),
|
||||
'company_id': fields.many2one('res.company', 'Company'),
|
||||
'state': fields.selection([('open', 'No Recruitment'), ('recruit', 'Recruitement in Progress')], 'Status', readonly=True, required=True,
|
||||
'state': fields.selection([('open', 'No Recruitment'), ('recruit', 'Recruitment in Progress')], 'Status', readonly=True, required=True,
|
||||
help="By default 'In position', set it to 'In Recruitment' if recruitment process is going on for this job position."),
|
||||
'color': fields.integer('Color Index'),
|
||||
}
|
||||
@@ -136,7 +136,7 @@ class hr_job(osv.osv):
|
||||
context = {}
|
||||
return {'value': {'expected_employees': no_of_recruitment + no_of_employee}}
|
||||
|
||||
def job_recruitement(self, cr, uid, ids, *args):
|
||||
def job_recruitment(self, cr, uid, ids, *args):
|
||||
for job in self.browse(cr, uid, ids):
|
||||
no_of_recruitment = job.no_of_recruitment == 0 and 1 or job.no_of_recruitment
|
||||
self.write(cr, uid, [job.id], {'state': 'recruit', 'no_of_recruitment': no_of_recruitment})
|
||||
|
||||
@@ -324,7 +324,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<form string="Job" version="7.0">
|
||||
<header>
|
||||
<button name="job_recruitement" string="Launch Recruitement" states="open" type="object" class="oe_highlight" groups="base.group_user"/>
|
||||
<button name="job_recruitment" string="Launch Recruitment" states="open" type="object" class="oe_highlight" groups="base.group_user"/>
|
||||
<button name="job_open" string="Stop Recruitment" states="recruit" type="object" class="oe_highlight" groups="base.group_user"/>
|
||||
<field name="state" widget="statusbar" statusbar_visible="recruit,open"/>
|
||||
</header>
|
||||
|
||||
@@ -162,7 +162,7 @@ msgstr ""
|
||||
|
||||
#. module: hr
|
||||
#: view:hr.job:0
|
||||
msgid "Launch Recruitement"
|
||||
msgid "Launch Recruitment"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr
|
||||
@@ -690,7 +690,7 @@ msgstr ""
|
||||
|
||||
#. module: hr
|
||||
#: selection:hr.job,state:0
|
||||
msgid "Recruitement in Progress"
|
||||
msgid "Recruitment in Progress"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr
|
||||
|
||||
@@ -10,10 +10,10 @@
|
||||
- state == 'open'
|
||||
- no_of_recruitment == 0
|
||||
-
|
||||
Now, Recruitement is started so I start recruitement of Job Postion of "Developer" Profile.
|
||||
Now, Recruitment is started so I start recruitment of Job Postion of "Developer" Profile.
|
||||
-
|
||||
!python {model: hr.job}: |
|
||||
self.job_recruitement(cr, uid, [ref('job_developer')])
|
||||
self.job_recruitment(cr, uid, [ref('job_developer')])
|
||||
-
|
||||
I check 'state' and number of 'Expected in Recruitment' after initiating the recruitment
|
||||
-
|
||||
|
||||
@@ -346,7 +346,9 @@
|
||||
<field name="color"/>
|
||||
<field name="priority_count"/>
|
||||
<field name="manager_id"/>
|
||||
<field name="survey_id"/>
|
||||
<field name="message_summary"/>
|
||||
<field name="state"/>
|
||||
<templates>
|
||||
<t t-name="kanban-box">
|
||||
<div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_job oe_kanban_card oe_kanban_global_click">
|
||||
@@ -376,6 +378,11 @@
|
||||
<t t-if="widget.values.no_of_recruitment.value lt 1">
|
||||
<div style="padding-top: 10px;"><p>To start a recruitment phase for this job position,<b>click here</b></p><img src="/hr_recruitment/static/src/img/down1.png" style="margin-top: -24px; width: 22px;height: 22px;float: right;padding-right: 88px;"/> </div>
|
||||
</t>
|
||||
<div class="oe_kanban_footer_right">
|
||||
<a t-if="widget.values.survey_id.value" data-name="action_print_survey" data-type="object" class=" oe_kanban_action oe_kanban_action_a">Print Interview | </a>
|
||||
<a t-if="widget.values.no_of_recruitment.value lt 1" data-name="job_recruitment" data-type="object" class=" oe_kanban_action oe_kanban_action_a">Launch Recruitment</a>
|
||||
<a t-if="widget.values.no_of_recruitment.value gt 0" data-name="job_open" data-type="object" class=" oe_kanban_action oe_kanban_action_a">Recruitment Done</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
@@ -36,3 +36,9 @@
|
||||
font-size: 11px;
|
||||
color: gray;
|
||||
}
|
||||
.openerp .oe_kanban_footer_right {
|
||||
float: right;
|
||||
}
|
||||
.openerp .oe_kanban_draghandle {
|
||||
height: 114px;
|
||||
}
|
||||
Reference in New Issue
Block a user