diff options
Diffstat (limited to 'fixco_custom/views/account_move.xml')
| -rw-r--r-- | fixco_custom/views/account_move.xml | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/fixco_custom/views/account_move.xml b/fixco_custom/views/account_move.xml index 41ad966..69c9b47 100644 --- a/fixco_custom/views/account_move.xml +++ b/fixco_custom/views/account_move.xml @@ -35,10 +35,13 @@ </button> <xpath expr="//header" position="inside"> <button name="action_open_po_item_wizard" - type="object" - string="Add PO Items" - class="oe_highlight" - attrs="{'invisible': [('move_type','!=','in_invoice')]}"/> + type="object" + string="Add PO Items" + class="oe_highlight" + attrs="{'invisible': ['|', + ('move_type','!=','in_invoice'), + ('state','!=','draft') + ]}"/> </xpath> |
