[IMP]:hr_evaluation:improved view
authorapa-tiny <apa@tinyerp.com>
Thu, 4 Mar 2010 10:54:37 +0000 (16:24 +0530)
committerapa-tiny <apa@tinyerp.com>
Thu, 4 Mar 2010 10:54:37 +0000 (16:24 +0530)
bzr revid: apa@tinyerp.com-20100304105437-ska5mw8hitstin3g

addons/hr_evaluation/hr_evaluation_view.xml

index 1912964..08ac961 100644 (file)
 
                     <field name="response" readonly="1" invisible="True"/>
                     <button name="%(survey.action_view_survey_question_message)d" string="Interview Question" type="action" states="waiting_answer,done,cancel"
-                        icon="gtk-execute" context="{'survey_id': survey_id, 'response_id': response, 'active' : response, 'object' : 'hr.evaluation.interview', 'cur_id' : active_id}" attrs="{'readonly':[('survey_id','=',False)]}"/>
+                        icon="gtk-execute" context="{'survey_id': survey_id, 'response_id': [response], 'response_no':0, 'active' : response, 'object' : 'hr.evaluation.interview', 'cur_id' : active_id}" attrs="{'readonly':[('survey_id','=',False)]}"/>
                     <button name="%(survey.survey_browse_response)d" string="Print Interview" type="action" states="waiting_answer,done,cancel"
-                        icon="gtk-print" context="{'survey_id': survey_id, 'response_id' : response,}" attrs="{'readonly':[('response','!=',True),('survey_id','!=',True)]}" />
+                        icon="gtk-print" context="{'survey_id': survey_id, 'response_id' : [response], 'response_no':0}" attrs="{'readonly':[('response','!=',True),('survey_id','!=',True)]}" />
                     <field name="state" />
                 </tree>
             </field>