[IMP]Improve code for job position

bzr revid: vja@tinyerp.com-20130507071909-ses82n9qvqxdt4gn
This commit is contained in:
Vishmita Jadeja (openerp) 2013-05-07 12:49:09 +05:30
parent 8fa0dd8517
commit 866c2b4236
3 changed files with 23 additions and 40 deletions

View File

@ -400,13 +400,6 @@ class hr_applicant(base_stage, osv.Model):
return super(hr_applicant, self).message_update(cr, uid, ids, msg, update_vals=update_vals, context=context)
def create(self, cr, uid, vals, context=None):
obj_id = super(hr_applicant, self).create(cr, uid, vals, context=context)
applicant = self.browse(cr, uid, obj_id, context=context)
if applicant.job_id:
self.pool.get('hr.job').message_post(cr, uid, [applicant.job_id.id], body=_('Applicant <b>created</b>'), subtype="hr_recruitment.mt_job_new_applicant", context=context)
return obj_id
def case_open(self, cr, uid, ids, context=None):
"""
open Request of the applicant for the hr_recruitment

View File

@ -358,35 +358,19 @@
<li><ul class="oe_kanban_colorpicker" data-field="color"/></li>
</ul>
</div>
<div class="oe_kanban_content">
<div class="oe_kanban_content" >
<a class="oe_kanban_action_a" name="%(hr_job_applications)d" type="action" >
<h3 class="oe_job oe_kanban_ellipsis"><field name="name"/></h3>
<div class="oe_job oe_kanban_ellipsis"><field name="department_id"/></div>
<t t-if="record.department_id.raw_value">
<img t-att-src="kanban_image('hr.employee', 'image_small', widget.values.manager_id.value.id)" t-att-title="record.manager_id.value.name" class="oe_kanban_avatar"/>
</t>
<div style="margin-top:10px;margin-bottom:7px;"><t t-esc="Math.round(record.no_of_recruitment.raw_value)"/> Expected in Recruitment</div>
<div><a class="oe_kanban_action_a" name="%(hr_job_applications)d" type="action" >
<img t-if="record.department_id.raw_value" t-att-src="kanban_image('hr.employee', 'image_small', widget.values.manager_id.value.id)" t-att-title="record.manager_id.value.name" class="oe_kanban_avatar"/>
<div class="oe_name"><t t-esc="record.manager_id.value.name"/></div>
<div style="margin-top:25px;margin-bottom:7px;"><t t-esc="Math.round(record.no_of_recruitment.raw_value)"/> Expected in Recruitment</div>
<div class="oe_application">
<span t-if="widget.values.priority_count.value.total_application gt 1"><t t-esc="Math.round(widget.values.priority_count.value.total_application)"/> Applications</span>
<span t-if="widget.values.priority_count.value.total_application lt 2"><t t-esc="Math.round(widget.values.priority_count.value.total_application)"/> Application</span>
</a>
<div class="oe_kanban_footer_left oe_job_message"><t t-raw="record.message_summary.raw_value"/></div></div>
<div style="margin-top:5px;">
<t t-esc="widget.values.priority_count.value.priority1"/>
<span title="Excellent">
<img t-attf-src="/web/static/src/img/icons/star-on.png" width="16" height="16" />
<img t-attf-src="/web/static/src/img/icons/star-on.png" width="16" height="16" />
<img t-attf-src="/web/static/src/img/icons/star-on.png" width="16" height="16" />
</span><br />
<t t-esc="widget.values.priority_count.value.priority2"/>
<span title="Very Good">
<img t-attf-src="/web/static/src/img/icons/star-on.png" width="16" height="16" />
<img t-attf-src="/web/static/src/img/icons/star-on.png" width="16" height="16" />
</span><br />
<t t-esc="widget.values.priority_count.value.priority3"/>
<span title="Good">
<img t-attf-src="/web/static/src/img/icons/star-on.png" width="16" height="16" />
</span>
</div>
</a>
<div class="oe_kanban_footer_left oe_job_message"><t t-raw="record.message_summary.raw_value"/></div>
</div>
</div>
</t>

View File

@ -1,11 +1,12 @@
.openerp .oe_kanban_job {
width: 230px;
min-height: 140px !important;
}
.openerp .oe_job{
font-size:112%;
margin:3px 0px;
margin:3px 3px;
margin-left: 45px;
color: #4c4c4c;
}
.openerp .oe_job_message{
float: right;
@ -13,16 +14,21 @@
margin-top: -4px !important;
}
.openerp img.oe_kanban_avatar{
float: right;
margin-top: -24px !important;
margin-right: 18px;
width:30px;
height:30px
margin-top: -23px;
width:38px;
height:38px;
}
.openerp div.oe_kanban_ellipsis{
width:180px;
}
.openerp .oe_kanban_action_a > span:hover{
.openerp div.oe_application > span:hover{
margin: 4px 0;
text-decoration: underline
}
}
.openerp .oe_name {
margin-left: 44px;
margin-top: -18px;
margin-bottom: -15px;
font-size: 11px;
color: gray;
}