summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorIndoteknik . <it@fixcomart.co.id>2025-07-22 16:57:06 +0700
committerIndoteknik . <it@fixcomart.co.id>2025-07-22 16:57:06 +0700
commitfbb10e5244efae7e459d26b92c81c5eda07b93ea (patch)
treeee047729d8f7a121d82ffc28d34441940cbf0e0f /indoteknik_custom/views
parent96b986a27a356dfd026144ceed41608adde661a1 (diff)
(andri) init status pada realisasi dan menambahkan action cab only AP
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/down_payment_realization.xml34
1 files changed, 27 insertions, 7 deletions
diff --git a/indoteknik_custom/views/down_payment_realization.xml b/indoteknik_custom/views/down_payment_realization.xml
index 1138b59e..64b3af91 100644
--- a/indoteknik_custom/views/down_payment_realization.xml
+++ b/indoteknik_custom/views/down_payment_realization.xml
@@ -9,18 +9,34 @@
type="object"
string="Validasi"
class="btn-primary"/>
- <button name="action_misc"
+ <button name="action_cab"
type="object"
string="AP Only"/>
- <field name="done_status" widget="statusbar"
- statusbar_visible="remaining,done_not_realized,done_realized"
- statusbar_colors='{"done_realized":"green"}'
+ <field name="status" widget="statusbar"
+ statusbar_visible="draft,pengajuan1,pengajuan2,pengajuan3,approved"
+ statusbar_colors='{"reject":"red"}'
readonly="1"/>
</header>
-
<sheet>
- <h1><field name="name" 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 MISC"/>
+ <span class="o_stat_text">
+ <t t-esc="record.move_misc_id.name"/>
+ </span>
+ </button>
+ </div>
+ <div class="oe_title">
+ <h1>
+ <field name="name" readonly="1"/>
+ </h1>
+ </div>
<group col="2">
<group>
<field name="pum_id" readonly="1"/>
@@ -29,6 +45,10 @@
<field name="related" required="1"/>
</group>
<group>
+ <field name="done_status"
+ decoration-success="done_status == 'done_realized'"
+ decoration-danger="done_status == 'remaining'"
+ widget="badge" readonly="1"/>
<field name="note_approval" required="1"/>
</group>
</group>