[MERGE] hr_evaluation: fixed bug 908092: added a button to print the survey report...
authorThibault Delavallée <tde@openerp.com>
Tue, 3 Jan 2012 09:11:18 +0000 (10:11 +0100)
committerThibault Delavallée <tde@openerp.com>
Tue, 3 Jan 2012 09:11:18 +0000 (10:11 +0100)
bzr revid: tde@openerp.com-20120103091118-ou3193ogwie5dxet

1  2 
addons/hr_evaluation/hr_evaluation_view.xml

                          <field name="response" readonly="1"/>
                          <field name="user_to_review_id"/>
                          <field name="user_id" string="Interviewer"/>
-                         <button string="Send Reminder Email"
-                         name="%(mail.action_email_compose_message_wizard)d"
-                         icon="terp-mail-message-new" type="action" colspan="2"
-                         states="waiting_answer"/>
+                         <group col="2" colspan="2">
+                             <button string="Send Reminder Email"
+                             name="%(mail.action_email_compose_message_wizard)d"
+                             icon="terp-mail-message-new" type="action"
+                             states="waiting_answer"/>
 -                            <button name="action_print_survey" string="Print Survey" type="object" icon="gtk-print" context="{'survey_id': survey_id, 'response_id': [response], 'response_no':0, 'active' : response,'request' : True, 'object' : 'hr.evaluation.interview', 'cur_id' : active_id}" attrs="{'readonly':[('survey_id','=',False)]}"/>
++                            <button name="action_print_survey" string="Print Survey" type="object" icon="gtk-print" context="{'survey_id': survey_id, 'response_id': [response], 'response_no':0}" attrs="{'readonly':[('survey_id','=',False)]}"/>
+                         </group>
                      </group>
                      <newline/>
                      <separator string="State" colspan="4"/>
                      <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], 'response_no':0, 'active' : response, 'request' : True, '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="done" icon="gtk-print" context="{'survey_id': survey_id, 'response_id' : [response], 'response_no':0}" attrs="{'readonly':[('response','=',False)]}" />
 -                    <button name="action_print_survey" string="Print Survey" type="object" icon="gtk-print" context="{'survey_id': survey_id, 'response_id': [response], 'response_no':0, 'active' : response,'request' : True, 'object' : 'hr.evaluation.interview', 'cur_id' : active_id}" attrs="{'readonly':[('survey_id','=',False)]}"/>                                 
++                    <button name="action_print_survey" string="Print Survey" type="object" icon="gtk-print" context="{'survey_id': survey_id, 'response_id': [response], 'response_no':0}" attrs="{'readonly':[('survey_id','=',False)]}"/>
                      <button name="%(mail.action_email_compose_message_wizard)d" string="Send Reminder Email" icon="terp-mail-message-new" type="action" colspan="2" states="waiting_answer"/>
                      <field name="state"/>
                  </tree>