summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-10-03 19:38:57 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-10-03 19:38:57 +0700
commitbaaaa901391b4cd6956cb28aff992735e84962e4 (patch)
treeaef0c27287dadf5f5f8c90339ae96c01abe01865 /indoteknik_custom/views
parent35d01765f9b925467b6ac20d2ff83c81f49e4d3e (diff)
<Miqdad> CR BU/IU Approval flow
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/stock_picking.xml10
1 files changed, 10 insertions, 0 deletions
diff --git a/indoteknik_custom/views/stock_picking.xml b/indoteknik_custom/views/stock_picking.xml
index 21762202..7f0865f4 100644
--- a/indoteknik_custom/views/stock_picking.xml
+++ b/indoteknik_custom/views/stock_picking.xml
@@ -45,6 +45,14 @@
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock.view_picking_form"/>
<field name="arch" type="xml">
+ <!-- Tambahkan tombol custom: tampil hanya saat BU/IU + pengajuan1 -->
+ <xpath expr="//header" position="inside">
+ <button name="action_bu_iu_to_pengajuan2"
+ type="object"
+ string="Set Ke Approval Logistik"
+ class="btn-primary"
+ attrs="{'invisible': [('is_bu_iu', '=', False), ('approval_status', 'in', ['pengajuan2', False, 'false', ''])]}"/>
+ </xpath>
<button name="action_confirm" position="before">
<button name="ask_approval"
string="Ask Approval"
@@ -158,6 +166,8 @@
<field name="purchase_id"/>
<field name="sale_order"/>
<field name="invoice_status"/>
+ <field name="is_bu_iu" />
+ <field name="approval_status" attrs="{'invisible': [('is_bu_iu', '=', False)]}"/>
<field name="date_doc_kirim" attrs="{'readonly':[('invoice_status', '=', 'invoiced')]}"/>
<field name="summary_qty_operation"/>
<field name="count_line_operation"/>