From 32624d285743f09f65fac502b568223e569d0b6d Mon Sep 17 00:00:00 2001 From: fp Date: Thu, 18 Aug 2011 21:30:44 +0200 Subject: [PATCH] [IMP] Misc useability improvement bzr revid: fp@fp-laptop-20110818193044-dwv8je39jv65dbta --- addons/crm/crm_lead.py | 8 +-- addons/crm/crm_lead_view.xml | 2 +- addons/crm/crm_opportunity_view.xml | 2 +- addons/hr_recruitment/hr_recruitment.py | 30 ++++++-- addons/hr_recruitment/hr_recruitment_data.xml | 31 ++++++-- addons/hr_recruitment/hr_recruitment_view.xml | 71 ++++++++++++++----- addons/project_issue/project_issue.py | 8 +-- addons/project_issue/project_issue_view.xml | 16 ++--- 8 files changed, 122 insertions(+), 46 deletions(-) diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index 294c5dfbf56..56d2d90425d 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -126,11 +126,11 @@ class crm_lead(crm_case, osv.osv): # From crm.case 'id': fields.integer('ID'), - 'name': fields.char('Name', size=64), + 'name': fields.char('Name', size=64, select=1), 'active': fields.boolean('Active', required=False), 'date_action_last': fields.datetime('Last Action', readonly=1), 'date_action_next': fields.datetime('Next Action', readonly=1), - 'email_from': fields.char('Email', size=128, help="E-mail address of the contact"), + 'email_from': fields.char('Email', size=128, help="E-mail address of the contact", select=1), 'section_id': fields.many2one('crm.case.section', 'Sales Team', \ select=True, help='Sales team to which this case belongs to. Defines responsible user and e-mail address for the mail gateway.'), 'create_date': fields.datetime('Creation Date' , readonly=True), @@ -145,7 +145,7 @@ class crm_lead(crm_case, osv.osv): domain="['|',('section_id','=',section_id),('section_id','=',False)]", help="From which campaign (seminar, marketing campaign, mass mailing, ...) did this contact come from?"), 'channel_id': fields.many2one('res.partner.canal', 'Channel', help="From which channel (mail, direct, phone, ...) did this contact reach you?"), 'contact_name': fields.char('Contact Name', size=64), - 'partner_name': fields.char("Customer Name", size=64,help='The name of the future partner that will be created while converting the into opportunity'), + 'partner_name': fields.char("Customer Name", size=64,help='The name of the future partner that will be created while converting the into opportunity', select=1), 'optin': fields.boolean('Opt-In', help="If opt-in is checked, this contact has accepted to receive emails."), 'optout': fields.boolean('Opt-Out', help="If opt-out is checked, this contact has refused to receive emails or unsubscribed to a campaign."), 'type':fields.selection([ @@ -156,7 +156,7 @@ class crm_lead(crm_case, osv.osv): 'priority': fields.selection(crm.AVAILABLE_PRIORITIES, 'Priority'), 'date_closed': fields.datetime('Closed', readonly=True), 'stage_id': fields.many2one('crm.case.stage', 'Stage', domain="[('type','=','lead')]"), - 'user_id': fields.many2one('res.users', 'Salesman'), + 'user_id': fields.many2one('res.users', 'Salesman', select=1), 'referred': fields.char('Referred By', size=64), 'date_open': fields.datetime('Opened', readonly=True), 'day_open': fields.function(_compute_day, string='Days to Open', \ diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml index cc0297c16f4..3ee6b1bba00 100644 --- a/addons/crm/crm_lead_view.xml +++ b/addons/crm/crm_lead_view.xml @@ -328,7 +328,7 @@ /> + filter_domain="['|','|',('partner_name','ilike',self),('email_from','ilike',self),('name','ilike',self)]"/> - + + + + + LinkedIn + + + Monster + + + Word of Mouth + + + Company Website + + + + @@ -21,17 +38,21 @@ Graduate 1 - - Licenced + + Bachelor Degree 2 - - > Bac +5 + + Master Degree 3 + + Doctoral Degree + 4 + - Initial Jobs Demand + Initial Qualification 1 diff --git a/addons/hr_recruitment/hr_recruitment_view.xml b/addons/hr_recruitment/hr_recruitment_view.xml index 125d61979e9..0c071af8a06 100644 --- a/addons/hr_recruitment/hr_recruitment_view.xml +++ b/addons/hr_recruitment/hr_recruitment_view.xml @@ -53,6 +53,7 @@