Skip to content

Commit

Permalink
Merge pull request #99 from yvaucher/8.0-imp-view-sale_exception_reason
Browse files Browse the repository at this point in the history
Improve override of cancel button to ease inheritance of cancel reason view
  • Loading branch information
jgrandguillaume committed Jan 28, 2015
2 parents 5fecd6a + 01218ef commit 4647c47
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sale_cancel_reason/view/sale_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
<button name="%(action_sale_order_cancel)d" states="manual,progress" string="Cancel Order" type="action" groups="base.group_user"/>
</xpath>
<xpath expr="//button[@name='cancel']" position="attributes">
<attribute name="type">action</attribute>
<attribute name="name">%(action_sale_order_cancel)d</attribute>
<attribute name="invisible" eval="1"/>
</xpath>
<xpath expr="//button[@name='cancel']" position="after">
<button name="%(action_sale_order_cancel)d" type="action" states="draft,sent" string="Cancel Quotation" groups="base.group_user"/>
</xpath>
<xpath expr="/form/sheet/h1[1]" position="after">
<h2 attrs="{'invisible': [('state', '!=', 'cancel')]}">
Expand Down

0 comments on commit 4647c47

Please sign in to comment.