[IMP] account_payment: allow setting to draft when payment is done
authorNajlaâ <nel@tinyerp.com>
Wed, 7 Dec 2011 09:49:44 +0000 (10:49 +0100)
committerNajlaâ <nel@tinyerp.com>
Wed, 7 Dec 2011 09:49:44 +0000 (10:49 +0100)
bzr revid: nel@tinyerp.com-20111207094944-lom1y4ghj2j7b3qx

addons/account_payment/account_payment_view.xml

index b829748..7bd04e7 100644 (file)
                          <button name="cancel" states="draft,open" string="Cancel" icon="gtk-cancel"/>
                          <button name="open" states="draft" string="Confirm Payments"  icon="gtk-apply"/>
                          <button name="set_done" states="open" string="Make Payments" type="object" icon="gtk-execute"/>
-                         <button name="set_to_draft" states="cancel" string="Set to draft" type="object" icon="gtk-convert"/>
+                         <button name="set_to_draft" states="cancel,done" string="Set to draft" type="object" icon="gtk-convert"/>
                     </group>
                 </form>
             </field>