[IMP]stock:statusbar Improvement is Done as per suggestion
[odoo/odoo.git] / addons / hr_evaluation / hr_evaluation_view.xml
index ac3f723..78aa1de 100644 (file)
                     </notebook>
                     <newline/>
                     <group col="8" colspan="4">
-                           <field name="state"/>
-                           <button name="button_cancel" string="Cancel" states="draft,wait,progress" type="object"
-                                   icon="gtk-cancel"/>
-                           <button name="button_plan_in_progress" string="Start Evaluation" states="draft" type="object"
-                                   icon="gtk-execute"/>
-                           <button name="button_done" string="Done" states="progress" type="object"
-                                   icon="gtk-jump-to"/>
-                           <button name="button_draft" string="Reset to Draft" states="cancel" type="object"
-                                   icon="terp-stock_effects-object-colorize"/>
-                           <button name="button_final_validation" string="Validate Evaluation" states="wait" type="object"
-                                   icon="gtk-go-forward"/>
+                        <field name="state" widget="statusbar" statusbar_visible="draft,progress,wait,done" statusbar_colors="{'progress':'blue'}"/>
+                        <button name="button_cancel" string="Cancel" states="draft,wait,progress" type="object"
+                                icon="gtk-cancel"/>
+                        <button name="button_plan_in_progress" string="Start Evaluation" states="draft" type="object"
+                                icon="gtk-execute"/>
+                        <button name="button_done" string="Done" states="progress" type="object"
+                                icon="gtk-jump-to"/>
+                        <button name="button_draft" string="Reset to Draft" states="cancel" type="object"
+                                icon="terp-stock_effects-object-colorize"/>
+                        <button name="button_final_validation" string="Validate Evaluation" states="wait" type="object"
+                                icon="gtk-go-forward"/>
                     </group>
               </form>
             </field>
             <field name="model">hr_evaluation.evaluation</field>
             <field name="type">tree</field>
             <field name="arch" type="xml">
-                <tree colors="blue:state in ('draft');black:state in ('wait','progress');gray:state in('done','cancel')" string="Evaluation">
+                <tree colors="blue:state == 'draft';black:state in ('wait','progress');gray:state in('done','cancel')" string="Evaluation">
                     <field name="employee_id"/>
                     <field name="plan_id"/>
                     <field name="date"/>
             <field name="arch" type="xml">
                 <search string="Search Evaluation">
                    <group col='10' colspan='4'>
-                    <filter icon="terp-check" string="Current" domain="[('state','=','wait'))]" help="Evaluations that are in waiting state"/>
+                    <filter icon="terp-check" string="Current" domain="[('state','=','wait')]" help="Evaluations that are in waiting state"/>
                     <filter icon="terp-camera_test" string="In progress" domain="[('state','=','progress')]" help="Evaluations that are in progress state"/>
                     <separator orientation="vertical"/>
                     <filter icon="terp-go-week" string="7 Days" help="Evaluations to close within the next 7 days"
                         <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>
                     <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="%(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>
             </field>
             <field name="type">calendar</field>
             <field name="arch" type="xml">
                 <calendar string="Interview Request" color="user_to_review_id" date_start="date_deadline">
-                       <field name="request_id"/>
+                    <field name="request_id"/>
                 </calendar>
             </field>
         </record>
 
         <menuitem name="Interview Requests" parent="menu_eval_hr" id="menu_open_hr_evaluation_interview_requests"
             action="action_hr_evaluation_interview_tree"/>
-        <menuitem name="Evaluation Reminders" parent="menu_eval_hr" id="menu_eval_send_mail"
-           action="action_hr_evaluation_send_mail" sequence="45" groups="base.group_hr_manager"/>
+
+      <!-- Email Compose message Action-->
+      <act_window
+      id="evaluation_reminders" name="Evaluation Reminders"
+      res_model="mail.compose.message"
+      src_model="hr.evaluation.interview"
+      view_type="form" view_mode="form"
+      target="new" multi="True"
+      key2="client_action_multi"
+      context="{'mail.compose.message.mode':'mass_mail'}"/>
 
       <!-- Evaluation Interviews Button on Employee Form -->
       <act_window
-      context="{'search_default_user_to_review_id': [active_id]}"
+      context="{'search_default_user_to_review_id': [active_id], 'default_user_to_review_id': active_id}"
       id="act_hr_employee_2_hr__evaluation_interview"
       name="Evaluation Interviews"
       res_model="hr.evaluation.interview"