[IMP] add button at top
authorKuldeep Joshi (OpenERP) <kjo@tinyerp.com>
Thu, 26 Apr 2012 06:20:21 +0000 (11:50 +0530)
committerKuldeep Joshi (OpenERP) <kjo@tinyerp.com>
Thu, 26 Apr 2012 06:20:21 +0000 (11:50 +0530)
bzr revid: kjo@tinyerp.com-20120426062021-fvodef6o2znesb3p

1  2 
addons/project/project_view.xml

              <field name="arch" type="xml">
                  <form string="Project" layout="manual">
                  <div class="oe_form_topbar">
 -                    <button name="set_cancel" string="Cancel" type="object" states="open,pending" icon="gtk-cancel"/>
                      <button name="set_template" string="Set as Template" type="object" states="open" icon="gtk-convert"/>
                      <button name="set_open" string="Re-open project" type="object" states="pending,cancelled,close" icon="gtk-ok"/>
                      <button name="set_pending" string="Pending" type="object" states="open" icon="gtk-media-pause"/>
                      <button name="set_done" string="Done" type="object" states="open,pending" icon="terp-dialog-close"/>
                      <button name="reset_project" string="Reset as Project" type="object" states="template" icon="gtk-convert"/>
                      <button string="New Project Based on Template" name="duplicate_template"  type="object" states="template" icon="gtk-new" context="{'parent_id':parent_id}"/>
 +                    <button name="set_cancel" string="Cancel" type="object" states="open,pending" icon="gtk-cancel"/>
                      <div class="oe_right">
                          <field name="state" nolabel="1" widget="statusbar" statusbar_visible="open,close" statusbar_colors='{"pending":"blue"}' select="1" readonly="1"/>
                      </div>
              <field name="arch" type="xml">
                  <form string="Project" layout="manual">
                      <div class="oe_form_topbar">
 -                        <button name="do_cancel" states="draft,open,pending" string="Cancel" type="object" icon="gtk-cancel"/>
                          <button name="do_draft" states="open" string="Draft" type="object" icon="gtk-indent"/>
                          <button name="do_open" states="pending,draft" string="Start Task" type="object" icon="gtk-media-play"/>
                          <button name="%(action_project_task_reevaluate)d" states="done,cancelled" string="Reactivate" type="action" icon="gtk-convert" context="{'button_reactivate':True}" />
                          <button name="do_pending" states="open" string="Pending" type="object" icon="gtk-media-pause"/>
                          <button name="%(action_project_task_delegate)d" states="pending,open,draft" string="Delegate" type="action" icon="terp-personal"/>
++                        <button name="%(action_project_task_reevaluate)d" string="Reevaluate" type="action" colspan="1" target="new" states="open,pending" icon="gtk-edit"/>
                          <button name="action_close" states="pending,open" string="Done" type="object" icon="terp-dialog-close"/>
 +                        <button name="do_cancel" states="draft,open,pending" string="Cancel" type="object" icon="gtk-cancel"/>
                          <div class="oe_right">
                              <field name="state" nolabel="1" widget="statusbar" statusbar_visible="draft,open,done" statusbar_colors='{"pending":"blue"}' select="1"/>
                          </div>
                              </group>
                              <group col="3" colspan="2">
                                  <field name="remaining_hours" widget="float_time" attrs="{'readonly':[('state','!=','draft')]}" colspan="2"/>
--                                <button name="%(action_project_task_reevaluate)d" string="Reevaluate" type="action" colspan="1" target="new" states="open,pending" icon="gtk-edit"/>
                              </group>
  
                              <field colspan="4" name="description" nolabel="1"  attrs="{'readonly':[('state','=','done')]}"/>