Changes Code.
bzr revid: jir@tinyerp.com-20130611051801-3eycn095439p5od2
This commit is contained in:
@@ -1027,7 +1027,7 @@ class node_dir(node_database):
|
||||
print "Cannot eval %s." % dfld.expr
|
||||
print e
|
||||
pass
|
||||
|
||||
|
||||
def __eq__(self, other):
|
||||
if type(self) != type(other):
|
||||
return False
|
||||
|
||||
@@ -42,7 +42,6 @@ You can define the different phases of interviews and easily rate the applicant
|
||||
'base_status',
|
||||
'decimal_precision',
|
||||
'hr',
|
||||
'document',
|
||||
'survey',
|
||||
'base_calendar',
|
||||
'fetchmail',
|
||||
|
||||
@@ -213,17 +213,6 @@ class hr_applicant(base_stage, osv.Model):
|
||||
res[issue.id] = len(attach)
|
||||
return res
|
||||
|
||||
def _get_index_content(self, cr, uid, ids, fields, args, context=None):
|
||||
res = {}
|
||||
attachment_pool = self.pool.get('ir.attachment')
|
||||
for issue in self.browse(cr, uid, ids, context=context):
|
||||
res[issue.id] = 0
|
||||
attach_id = attachment_pool.search(cr, uid, [('res_model','=','hr.applicant'),('res_id','=',issue.id)])
|
||||
if attach_id:
|
||||
for attach in attachment_pool.browse(cr, uid, attach_id, context):
|
||||
res[issue.id] = attach.index_content
|
||||
return res
|
||||
|
||||
_columns = {
|
||||
'name': fields.char('Subject', size=128, required=True),
|
||||
'active': fields.boolean('Active', help="If the active field is set to false, it will allow you to hide the case without removing it."),
|
||||
@@ -276,8 +265,6 @@ class hr_applicant(base_stage, osv.Model):
|
||||
'emp_id': fields.many2one('hr.employee', 'employee'),
|
||||
'attachments': fields.function(_compute_attachments, string='Attachments', \
|
||||
type="integer"),
|
||||
'index_content': fields.function(_get_index_content, string='Index Content', \
|
||||
type="char",store=True),
|
||||
'user_email': fields.related('user_id', 'email', type='char', string='User Email', readonly=True),
|
||||
}
|
||||
|
||||
|
||||
@@ -23,18 +23,6 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="hr_applicant_resumes">
|
||||
<field name="name">Resumes and Letters</field>
|
||||
<field name="res_model">ir.attachment</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_id" ref="document.view_document_file_tree"/>
|
||||
<field name="domain">[('res_model','=','hr.applicant')]</field>
|
||||
<field name="help" type="html">
|
||||
<p class="oe_view_nocontent_create">
|
||||
Search through resumes and motivation letters.
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window.view" id="action_hr_sec_kanban_view_act_job">
|
||||
<field name="sequence" eval="0"/>
|
||||
@@ -77,10 +65,6 @@
|
||||
parent="base.menu_crm_case_job_req_main"
|
||||
id="menu_crm_case_categ0_act_job" action="crm_case_categ0_act_job" sequence="1"/>
|
||||
|
||||
<menuitem
|
||||
name="Resumes and Letters"
|
||||
parent="base.menu_crm_case_job_req_main"
|
||||
id="menu_crm_case_categ0_act_job02" action="hr_applicant_resumes" sequence="3"/>
|
||||
|
||||
<menuitem parent="hr.menu_hr_configuration" id="hr.menu_hr_job" action="hr.action_hr_job" sequence="2"/>
|
||||
|
||||
|
||||
@@ -58,7 +58,6 @@
|
||||
<field name="availability" invisible="1"/>
|
||||
<field name="department_id" invisible="context.get('invisible_department', True)"/>
|
||||
<field name="user_id"/>
|
||||
<field name="index_content" invisible="1"/>
|
||||
<field name="state" invisible="1"/>
|
||||
</tree>
|
||||
</field>
|
||||
@@ -188,7 +187,7 @@
|
||||
<separator/>
|
||||
<filter 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"/>
|
||||
<field name="index_content" string="Resume Content"/>
|
||||
|
||||
<field name="job_id"/>
|
||||
<field name="user_id"/>
|
||||
<separator/>
|
||||
|
||||
@@ -29,5 +29,6 @@ class hr_applicant_settings(osv.osv_memory):
|
||||
'module_document_ftp': fields.boolean('Allow the automatic indexation of resumes',
|
||||
help="""Manage your CV's and motivation letter related to all applicants.
|
||||
This installs the module document_ftp. This will install the knowledge management module in order to allow you to search using specific keywords through the content of all documents (PDF, .DOCx...)"""),
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user