summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorMqdd <ahmadmiqdad27@gmail.com>2026-02-14 12:02:15 +0700
committerMqdd <ahmadmiqdad27@gmail.com>2026-02-14 12:02:15 +0700
commit57221d2537684168a4761ce2eb0b2ede5586325f (patch)
tree10926fa5ab88153138efb32f5ec043504b493242 /indoteknik_custom/views
parent37e0beac646ee2e676ff935e8289cf3189b3c21b (diff)
<Miqdad> fix flow approval state adjust out
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/stock_inventory.xml7
1 files changed, 2 insertions, 5 deletions
diff --git a/indoteknik_custom/views/stock_inventory.xml b/indoteknik_custom/views/stock_inventory.xml
index 89c058ea..ab1b6eec 100644
--- a/indoteknik_custom/views/stock_inventory.xml
+++ b/indoteknik_custom/views/stock_inventory.xml
@@ -6,14 +6,10 @@
<field name="model">stock.inventory</field>
<field name="inherit_id" ref="stock.view_inventory_form"/>
<field name="arch" type="xml">
- <header>
- <button name="action_approve" string="Approve" type="object"
- class="btn-primary" attrs="{'invisible': [('adjusment_type', 'not in', ['out'])]}"/>
- </header>
<xpath expr="//field[@name='location_ids']" position="after">
<field name="number" readonly="1"/>
<field name="adjusment_type" />
- <field name="approval_state" readonly="1" attrs="{'invisible': [('adjusment_type', 'not in', ['out'])]}"/>
+ <field name="approval_state" />
</xpath>
</field>
</record>
@@ -26,6 +22,7 @@
<field name="arch" type="xml">
<xpath expr="//field[@name='date']" position="after">
<field name="number"/>
+ <field name="adjusment_type" />
<field name="approval_state"/>
</xpath>
</field>