diff options
| author | Indoteknik . <it@fixcomart.co.id> | 2025-07-21 14:26:24 +0700 |
|---|---|---|
| committer | Indoteknik . <it@fixcomart.co.id> | 2025-07-21 14:26:24 +0700 |
| commit | 6b68c39ebe116ccb16a5d77ab74b8b4a59958f20 (patch) | |
| tree | 6a9de7aad1ddde10fa42a268e8b16347e08c1988 /indoteknik_custom/views | |
| parent | 1b17c9e9c9c6f9b2e177a0c9e7a7e5a2c5535be4 (diff) | |
(andri) add wizard CAB di PUM dan hanya AP yang bisa akses
Diffstat (limited to 'indoteknik_custom/views')
| -rw-r--r-- | indoteknik_custom/views/down_payment.xml | 55 |
1 files changed, 52 insertions, 3 deletions
diff --git a/indoteknik_custom/views/down_payment.xml b/indoteknik_custom/views/down_payment.xml index 3c5f4f1f..47e3c2be 100644 --- a/indoteknik_custom/views/down_payment.xml +++ b/indoteknik_custom/views/down_payment.xml @@ -27,15 +27,35 @@ type="object" string="Checking/Approval" attrs="{}"/> + <button name="action_ap_only" + type="object" + string="AP Only" + attrs="{}"/> <field name="status" widget="statusbar" statusbar_visible="draft,pengajuan1,pengajuan2,pengajuan3,approved" statusbar_colors='{"reject":"red"}' readonly="1"/> </header> <sheet> - <h1> - <field name="number" readonly="1" class="oe_title"/> - </h1> + <div class="oe_button_box" name="button_box"> + <field name="is_cab_visible" invisible="1"/> + <button type="object" + name="action_view_journal_uangmuka" + class="oe_stat_button" + icon="fa-book" + attrs="{'invisible': [('is_cab_visible', '=', False)]}" + style="width: 200px;"> + <field name="move_id" widget="statinfo" string="Journal Uang Muka"/> + <span class="o_stat_text"> + <t t-esc="record.move_id.name"/> + </span> + </button> + </div> + <div class="oe_title"> + <h1> + <field name="number" readonly="1"/> + </h1> + </div> <group col="2"> <group string=""> <field name="applicant_name" colspan="2" attrs="{'readonly': [('status', '=', 'approved')]}"/> @@ -43,8 +63,10 @@ <field name="bank_name" colspan="2" attrs="{'readonly': [('status', '=', 'approved')]}"/> <field name="account_name" colspan="2" attrs="{'readonly': [('status', '=', 'approved')]}"/> <field name="bank_account" colspan="2" attrs="{'readonly': [('status', '=', 'approved')]}"/> + <!-- <field name="move_id" readonly="1"/> --> <hr/> <field name="user_id" readonly="1"/> + <field name="partner_id" readonly="1"/> <field name="departement_type"/> <field name="status_pay_down_payment" readonly="1" @@ -124,4 +146,31 @@ sequence="101" action="action_down_payment" /> + + <!-- view form untuk popup CAB AP Only --> + <record id="view_down_payment_ap_only_form" model="ir.ui.view"> + <field name="name">down.payment.ap.only.form</field> + <field name="model">down.payment.ap.only</field> + <field name="arch" type="xml"> + <form string="Create CAB AP Only"> + <group> + <field name="nominal"/> + <field name="account_id"/> + </group> + <footer> + <button name="action_create_cab" type="object" string="Create CAB" class="btn-primary"/> + <button string="Cancel" class="btn-secondary" special="cancel"/> + </footer> + </form> + </field> + </record> + + <record id="action_down_payment_cab_ap_only" model="ir.actions.act_window"> + <field name="name">Create CAB AP Only</field> + <field name="res_model">down.payment.ap.only</field> + <field name="view_mode">form</field> + <field name="view_id" ref="view_down_payment_ap_only_form"/> + <field name="target">new</field> + </record> + </odoo>
\ No newline at end of file |
