diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-01-13 15:34:13 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-01-13 15:34:13 +0700 |
| commit | 41da8b32edee0dc394bb69ac179833388e977053 (patch) | |
| tree | 6693223ca8a2ae23a4b492ef05256e9e2d10a21a /indoteknik_custom/views/purchase_order.xml | |
| parent | 88a54aebe579809dcaf8d8fd9640d5c4db83f2d6 (diff) | |
<iman> if unlock PO harus approv finance & if not FAT cannot edit jurnal entris
Diffstat (limited to 'indoteknik_custom/views/purchase_order.xml')
| -rwxr-xr-x | indoteknik_custom/views/purchase_order.xml | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml index d22c3b5c..fa11c373 100755 --- a/indoteknik_custom/views/purchase_order.xml +++ b/indoteknik_custom/views/purchase_order.xml @@ -20,6 +20,11 @@ type="object" attrs="{'invisible': [('approval_status', '=', 'approved')]}" /> + <button name="po_approve_unlock" + string="Ask Approval Unlock PO" + type="object" + attrs="{'invisible': [('approval_status_unlock', '=', 'approved')]}" + /> <button name="indoteknik_custom.action_view_uangmuka_pembelian" string="UangMuka" type="action" attrs="{'invisible': [('approval_status', '!=', 'approved')]}"/> </button> @@ -43,6 +48,9 @@ <field name="revisi_po"/> <field name="not_update_purchasepricelist"/> </field> + <field name="approval_status" position="after"> + <field name="approval_status_unlock" invisible="True"/> + </field> <field name="incoterm_id" position="after"> <field name="amount_total_without_service"/> <field name="delivery_amt"/> @@ -137,7 +145,30 @@ </field> </record> </data> - + <data> + <record id="view_purchase_order_unlock_wizard_form" model="ir.ui.view"> + <field name="name">purchase.order.unlock.wizard.form</field> + <field name="model">purchase.order.unlock.wizard</field> + <field name="arch" type="xml"> + <form string="Reject Reason"> + <group> + <field name="alasan" widget="text"/> + </group> + <footer> + <button string="Confirm" type="object" name="confirm_reject" class="btn-primary"/> + <button string="Cancel" class="btn-secondary" special="cancel"/> + </footer> + </form> + </field> + </record> + + <record id="action_purchase_order_unlock_wizard" model="ir.actions.act_window"> + <field name="name">Reject Reason</field> + <field name="res_model">purchase.order.unlock.wizard</field> + <field name="view_mode">form</field> + <field name="target">new</field> + </record> + </data> <data> <record id="rfq_order_tree_view_inherit" model="ir.ui.view"> |
