[IMP] Search for tags

bzr revid: jco@openerp.com-20130129112121-s5uqp28ittqddww5
This commit is contained in:
Josse Colpaert 2013-01-29 12:21:21 +01:00
parent cd1e346e01
commit eb84db7fdf
2 changed files with 4 additions and 3 deletions

View File

@ -346,10 +346,10 @@ class hr_applicant(base_stage, osv.Model):
This override updates the document according to the email.
"""
if custom_values is None: custom_values = {}
desc = html2plaintext(msg.get('body')) if msg.get('body') else ''
#desc = html2plaintext(msg.get('body')) if msg.get('body') else ''
defaults = {
'name': msg.get('subject') or _("No Subject"),
'description': desc,
#'description': desc,
'email_from': msg.get('from'),
'email_cc': msg.get('cc'),
'user_id': False,
@ -371,7 +371,7 @@ class hr_applicant(base_stage, osv.Model):
update_vals = {}
update_vals.update({
'description': msg.get('body'),
#'description': msg.get('body'),
'email_from': msg.get('from'),
'email_cc': msg.get('cc'),
})

View File

@ -175,6 +175,7 @@
<field name="arch" type="xml">
<search string="Search Jobs">
<field name="partner_name" filter_domain="['|','|',('name','ilike',self),('partner_name','ilike',self),('email_from','ilike',self)]" string="Subject / Applicant"/>
<field name="categ_ids"/>
<filter string="Unread Messages" name="message_unread" domain="[('message_unread','=',True)]"/>
<separator/>
<filter string="New" domain="[('state','=','draft')]" help="All Initial Jobs"/>