summaryrefslogtreecommitdiff
path: root/fixco_custom/views/account_move.xml
diff options
context:
space:
mode:
authorMqdd <ahmadmiqdad27@gmail.com>2026-01-14 10:31:46 +0700
committerMqdd <ahmadmiqdad27@gmail.com>2026-01-14 10:31:46 +0700
commitc4a4653e4065789a9c1baa97e91709ea52a6131e (patch)
treed703a93120b084cbd6248908d8bfe4b976c2b145 /fixco_custom/views/account_move.xml
parentfc6426726da32814736d7e692448fbd08b95cafc (diff)
<Miqdad> Done pahri
Diffstat (limited to 'fixco_custom/views/account_move.xml')
-rw-r--r--fixco_custom/views/account_move.xml11
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>