Added write_date and added icon of map-maker in place of Location & icon group in...
authorParamjit Singh Sahota <psa@tinyerp.com>
Wed, 14 Aug 2013 12:33:27 +0000 (18:03 +0530)
committerParamjit Singh Sahota <psa@tinyerp.com>
Wed, 14 Aug 2013 12:33:27 +0000 (18:03 +0530)
bzr revid: psa@tinyerp.com-20130814123327-o2hrf45poz5neexq

addons/website_hr_recruitment/recruitment.py [new file with mode: 0644]
addons/website_hr_recruitment/views/website_hr_recruitment.xml

diff --git a/addons/website_hr_recruitment/recruitment.py b/addons/website_hr_recruitment/recruitment.py
new file mode 100644 (file)
index 0000000..7bf3873
--- /dev/null
@@ -0,0 +1,10 @@
+# -*- coding: utf-8 -*-
+
+from openerp.osv import osv, fields
+
+# defined for access rules
+class hr_job(osv.osv):
+    _inherit = "hr.job"
+    _columns = {
+        'write_date': fields.datetime('Update Date', readonly=True),
+    }
index fb771c2..ee2a5aa 100644 (file)
@@ -32,8 +32,8 @@
                                                 <a t-att-href="'/job/detail/%%s' %% job.id"><span class="lead" t-field="job.name"/></a><br/>
                                                 <span t-if="job.department_id" t-esc="job.department_id.name"/><br/>
                                                 <i class="icon-time"></i> <span t-esc="job.write_date"/><br/>
-                                                <span><t t-if="job.no_of_recruitment &gt; 0">No of Position: <t t-esc="job.no_of_recruitment"/></t><t t-if="job.no_of_recruitment &lt; 1">Right now no recruitment is going on.</t></span><br/>
-                                                <span><t t-if="job.no_of_recruitment &gt; 0">Location: <t t-esc="res_company.city+','"/> <t t-esc="res_company.state_id.name+','"/> <t t-esc="res_company.country_id.name"/><br/>
+                                                <span><t t-if="job.no_of_recruitment &gt; 0"><i class="icon-group"></i> <t t-esc="job.no_of_recruitment"/></t><t t-if="job.no_of_recruitment &lt; 1">Right now no recruitment is going on.</t></span><br/>
+                                                <span><t t-if="job.no_of_recruitment &gt; 0"><i class="icon-map-marker"></i> <t t-esc="res_company.city"/> <t t-esc="res_company.state_id.name"/> <t t-esc="res_company.country_id.name"/><br/>
                                                 &amp;#x2706; <t t-esc="res_company.phone"/></t></span>
                                                 <div t-if="job.no_of_recruitment &lt; 1">
                                                     <strong>You may also be interested in our others job positions, for which we don't have availabilities right now.<br/>