Hardik Ansodariya (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-hr_periodic_evaluation-han into 
lp:openobject-addons.

Requested reviews:
  Raphael Collet (OpenERP) (rco-openerp)
  Hardik Ansodariya (OpenERP) (han-tinyerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-hr_periodic_evaluation-han/+merge/87720

Has hr.evaluation.interview is an inherits for survey this should also work:

evaluation plan form view : sequence of appraisal : in the evaluation phase, 
you have to specify a the sequence and the "wait for previous phase". This 
field does not seem working. if this field = true, the record should appears in 
the evaluation form only once previous phase is done.

example, there are 4 phases in the evaluation plan
sequence 1 | tp down | wait for previous phase = false
sequence 1 | bottom up | wait for previous phase = false
sequence 1 | self appraisal |wait for previous phase = false
sequence 2 | final interview | wait for previous phase = TRUE

That means that i have to see in evaluation of my employee :
sequence 1 | tp down | wait for previous phase = false
sequence 1 | bottom up | wait for previous phase = false
sequence 1 | self appraisal |wait for previous phase = false
-> the third one mus be available only once the 3 firsts are done
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-hr_periodic_evaluation-han/+merge/87720
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-hr_periodic_evaluation-han.
=== modified file 'hr_evaluation/hr_evaluation.py'
--- hr_evaluation/hr_evaluation.py	2011-12-05 13:21:02 +0000
+++ hr_evaluation/hr_evaluation.py	2012-01-06 10:30:41 +0000
@@ -277,7 +277,7 @@
         'is_evaluation': fields.boolean('Is Appraisal?'),
     }
     _defaults = {
-        'state': 'waiting_answer',
+        'state': 'draft',
     }
 
 survey_request()

=== modified file 'survey/wizard/survey_answer.py'
--- survey/wizard/survey_answer.py	2011-12-26 12:57:47 +0000
+++ survey/wizard/survey_answer.py	2012-01-06 10:30:41 +0000
@@ -394,6 +394,9 @@
                         survey_data = survey_obj.browse(cr, uid, survey_id)
                         response_id = surv_name_wiz.read(cr, uid, context.get('sur_name_id',False))['response']
                         context.update({'response_id':response_id})
+                        survey_req_obj = self.pool.get(context.get('active_model'))
+                        if survey_req_obj and hasattr(survey_req_obj, 'survey_req_done'):
+                            survey_req_obj.survey_req_done(cr, uid, context.get('active_ids', []), context=context)
                         report = self.create_report(cr, uid, [survey_id], 'report.survey.browse.response', survey_data.title,context)
                         attachments = {}
                         file = open(addons.get_module_resource('survey', 'report') + survey_data.title + ".pdf")

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to