summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorFIN-IT_AndriFP <andrifebriyadiputra@gmail.com>2026-02-10 16:36:18 +0700
committerFIN-IT_AndriFP <andrifebriyadiputra@gmail.com>2026-02-10 16:36:18 +0700
commit9bb9a2a0c6412ee7acb4eb1d4748e2b5301ffa21 (patch)
tree955c2f162513854b06c695c816e7bc10502f060c /indoteknik_custom/views
parent30ccd81fe087eec277da6875b1df9d9a3579ab77 (diff)
parent2def9515d57eb3128cad31c8b97901055e4e0523 (diff)
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into odoo-backup
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/stock_inventory.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/indoteknik_custom/views/stock_inventory.xml b/indoteknik_custom/views/stock_inventory.xml
index db85f05c..89c058ea 100644
--- a/indoteknik_custom/views/stock_inventory.xml
+++ b/indoteknik_custom/views/stock_inventory.xml
@@ -6,9 +6,14 @@
<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'])]}"/>
</xpath>
</field>
</record>
@@ -21,6 +26,7 @@
<field name="arch" type="xml">
<xpath expr="//field[@name='date']" position="after">
<field name="number"/>
+ <field name="approval_state"/>
</xpath>
</field>
</record>