Skip to content

Commit

Permalink
[IMP] account_cancel: improve code.
Browse files Browse the repository at this point in the history
  • Loading branch information
hbh-odoo committed Aug 16, 2017
1 parent d4b4561 commit 16366be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/account_cancel/views/account_views.xml
Expand Up @@ -65,7 +65,7 @@
<field name="inherit_id" ref="account.view_account_payment_form"/>
<field name="arch" type="xml">
<xpath expr="//header/field[@name='state']" position="before">
<button name="cancel" attrs="{'invisible': ['|', ('state', '=', 'draft'), ('state', '=', 'cancel')]}" string="Cancel" type="object"/>
<button name="cancel" attrs="{'invisible': [('state', 'in', ['draft','cancel'])]}" string="Cancel" type="object"/>
</xpath>
</field>
</record>
Expand Down

0 comments on commit 16366be

Please sign in to comment.