[IMP]: Project Dashboard.
authorrch <rch@rch-desktop>
Thu, 14 Oct 2010 11:39:30 +0000 (17:09 +0530)
committerrch <rch@rch-desktop>
Thu, 14 Oct 2010 11:39:30 +0000 (17:09 +0530)
bzr revid: rch@rch-desktop-20101014113930-atj3i3uox11zax9s

addons/project/board_project_view.xml

index 71b5d87..dc985d4 100644 (file)
                     <field name="planned_hours" widget="float_time"/>
                     <field name="effective_hours" widget="float_time"/>
                     <field name="progress" widget="progressbar"/>
+                    <field name="state" invisible="context.get('set_visible',False)"/>
+                    <button name="do_cancel" states="draft,open,pending" string="Cancel" type="object" icon="gtk-cancel" help="For cancelling the task"/>
+                                       <button name="do_open" states="pending,draft,done,cancel" string="Start Task" type="object" icon="gtk-execute" help="For changing to open state" invisible="context.get('set_visible',False)"/>
+                    <button groups="base.group_extended" name="%(action_project_task_delegate)d" states="pending,open,draft" string="Delegate" type="action" icon="gtk-sort-descending" help="For changing to delegate state"/>
+                    <button name="action_close" states="draft,pending,open" string="Done" type="object" icon="gtk-apply" help="For changing to done state"/>
                 </tree>
             </field>
         </record>
                     <field name="total_hours" widget="float_time"/>
                     <field name="progress" widget="progressbar"/>
                     <field name="type_id"/>
+                    <button name="next_type" invisible="context.get('set_visible',False)"
+                        states="draft,open,pending"
+                        string="Change Stage"
+                        type="object"
+                        icon="gtk-go-forward"
+                        groups="base.group_extended"
+                        help="Change Type"/>
+                    <field name="state" invisible="context.get('set_visible',False)"/>
+                    <button name="do_cancel" states="draft,open,pending" string="Cancel" type="object" icon="gtk-cancel" help="For cancelling the task"/>
+                                       <button name="do_open" states="pending,draft,done,cancel" string="Start Task" type="object" icon="gtk-execute" help="For changing to open state" invisible="context.get('set_visible',False)"/>
+                    <button groups="base.group_extended" name="%(action_project_task_delegate)d" states="pending,open,draft" string="Delegate" type="action" icon="gtk-sort-descending" help="For changing to delegate state"/>
+                    <button name="action_close" states="draft,pending,open" string="Done" type="object" icon="gtk-apply" help="For changing to done state"/>
                 </tree>
             </field>
         </record>