rename survey field and add serch default with new and in progress status
authorTejas (OpenERP) <tta@openerp.com>
Tue, 8 Nov 2011 10:21:53 +0000 (15:51 +0530)
committerTejas (OpenERP) <tta@openerp.com>
Tue, 8 Nov 2011 10:21:53 +0000 (15:51 +0530)
bzr revid: tta@openerp.com-20111108102153-p9faeuqr4742fe8w

addons/hr_recruitment/hr_recruitment.py
addons/hr_recruitment/hr_recruitment_menu.xml
addons/hr_recruitment/hr_recruitment_view.xml

index e2ecf52..65e8109 100644 (file)
@@ -473,7 +473,7 @@ class hr_job(osv.osv):
     _inherit = "hr.job"
     _name = "hr.job"
     _columns = {
-        'survey_id': fields.many2one('survey', 'Survey', help="Select survey for the current job"),
+        'survey_id': fields.many2one('survey', 'Interview Form', help="Choose an interview form for this job position and you will be able to print/answer this interview from all applicants who apply for this job"),
     }
 hr_job()
 
index 0bac3f8..d114011 100644 (file)
@@ -8,7 +8,7 @@
             <field name="res_model">hr.applicant</field>
             <field name="view_mode">tree,form,graph,calendar,kanban</field>
             <field name="view_id" ref="crm_case_tree_view_job"/>
-            <field name="context">{"search_default_user_id":uid, 'search_default_current': 1,"search_default_department_id": department_id}</field>
+            <field name="context">{'search_default_filter_inprogress':1,'search_default_filter_new':1, 'search_default_current': 1,"search_default_department_id": department_id}</field>            
             <field name="search_view_id" ref="view_crm_case_jobs_filter"/>
             <field name="help">From this menu you can track applicants in the recruitment process and manage all operations: meetings, interviews, phone calls, etc. If you setup the email gateway, applicants and their attached CV are created automatically when an email is sent to jobs@yourcompany.com. If you install the document management modules, all documents (CV and motivation letters) are indexed automatically, so that you can easily search through their content.</field>
         </record>
index 6b86312..0549bb7 100644 (file)
         <field name="type">search</field>
         <field name="arch" type="xml">
             <search string="Search Jobs">
-               <filter icon="terp-document-new" string="New"
+               <filter icon="terp-document-new" string="New" name="filter_new" 
                    domain="[('state','=','draft')]"
                    help="All Initial Jobs"
                />
-               <filter icon="terp-camera_test" string="In Progress"
+               <filter icon="terp-camera_test" string="In Progress" name="filter_inprogress"
                    domain="[('state','=','open')]"
                    help="Open Jobs"
                />