[IMP]Add company name.
bzr revid: bth@tinyerp.com-20130807133210-epwxgywxbxi4wsiv
This commit is contained in:
@@ -11,6 +11,8 @@ class website_hr_recruitment(http.Controller):
|
||||
def career(self, **post):
|
||||
website = request.registry['website']
|
||||
jobpost_ids = request.registry['hr.job'].search(request.cr, request.uid, [("state", "=", 'open')])
|
||||
#groups = request.registry['hr.job'].read_group(request.cr, request.uid, [], [], ['company_id'])
|
||||
#print "\n\n>>>>..grouos>>>>>>>>>>",groups
|
||||
values = website.get_rendering_context({
|
||||
'res_job': request.registry['hr.job'].browse(request.cr, request.uid, jobpost_ids)
|
||||
})
|
||||
|
||||
@@ -24,12 +24,14 @@
|
||||
<table class="table table-bordered table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Company Name</th>
|
||||
<th>Post Name</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<t t-foreach="res_job" t-as="job">
|
||||
<tr>
|
||||
<td><span t-if="job.company_id" class="lead"><t t-esc="job.company_id.name"/></span></td>
|
||||
<td>
|
||||
<a t-att-href="'/job/detail/%%s' %% job.id"><span class="lead"><t t-esc="job.name"/></span></a><br/>
|
||||
<span t-if="job.department_id"><t t-esc="job.department_id.name"/></span>
|
||||
|
||||
Reference in New Issue
Block a user