[IMP]:added invisible=context.get('show_delegated',True) to delegated task wizard
authornch@tinyerp.com <>
Mon, 8 Feb 2010 05:23:55 +0000 (10:53 +0530)
committernch@tinyerp.com <>
Mon, 8 Feb 2010 05:23:55 +0000 (10:53 +0530)
bzr revid: nch@tinyerp.com-20100208052355-u0jqjir0yubatejt

addons/project/project_view.xml

index 788a44c..77927cf 100644 (file)
                     <field name="progress" widget="progressbar" invisible="context.get('set_visible',False)"/>
                     <field name="state" invisible="context.get('set_visible',False)"/>
                     <button name="do_open" states="pending,draft" 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="%(wizard_delegate_task)d" states="pending,open,draft" string="Delegate" type="action" icon="gtk-execute" help="For changing to delegate state" />
+                    <button groups="base.group_extended" name="%(wizard_delegate_task)d" states="pending,open,draft" string="Delegate" type="action" icon="gtk-execute" help="For changing to delegate state" invisible="context.get('show_delegated',True)" />
                     <button name="%(wizard_close_task)d" states="pending,open" string="Done" type="action" icon="gtk-jump-to" help="For changing to done state"/>
                     <button name="do_cancel" states="draft,open,pending" string="Cancel" type="object" icon="gtk-cancel" help="For cancelling the task"/>
                 </tree>