summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/down_payment_realization.xml
diff options
context:
space:
mode:
authorIndoteknik . <it@fixcomart.co.id>2025-07-18 11:35:02 +0700
committerIndoteknik . <it@fixcomart.co.id>2025-07-18 11:35:02 +0700
commitb839d55d39856031b6abfeb8f304b77b0fb145ce (patch)
tree33ddef5a0822b25bba72d98b63148639f1588744 /indoteknik_custom/views/down_payment_realization.xml
parent2fe077d802bf143b110bc681ac039ba8bcfccb26 (diff)
(andri) add chatter & make realization form
Diffstat (limited to 'indoteknik_custom/views/down_payment_realization.xml')
-rw-r--r--indoteknik_custom/views/down_payment_realization.xml69
1 files changed, 69 insertions, 0 deletions
diff --git a/indoteknik_custom/views/down_payment_realization.xml b/indoteknik_custom/views/down_payment_realization.xml
new file mode 100644
index 00000000..ab8034c6
--- /dev/null
+++ b/indoteknik_custom/views/down_payment_realization.xml
@@ -0,0 +1,69 @@
+<odoo>
+ <record id="view_form_realization_down_payment" model="ir.ui.view">
+ <field name="name">realization.down.payment.form</field>
+ <field name="model">realization.down.payment</field>
+ <field name="arch" type="xml">
+ <form string="Realisasi Uang Muka">
+ <sheet>
+ <h1>
+ <field name="title" class="oe_title"/>
+ </h1>
+
+ <group col="2">
+ <group>
+ <field name="pum_id" readonly="1"/>
+ <field name="goals" required="1"/>
+ <field name="related" required="1"/>
+ </group>
+ <group>
+ <field name="note_approval" required="1"/>
+ </group>
+ </group>
+
+ <notebook>
+ <page string="Rincian Pemberian">
+ <field name="pemberian_line_ids" nolabel="1">
+ <tree editable="bottom">
+ <field name="date"/>
+ <field name="description"/>
+ <field name="value" sum="Total Pemberian"/>
+ </tree>
+ </field>
+ </page>
+
+ <page string="Rincian Penggunaan">
+ <field name="penggunaan_line_ids" nolabel="1">
+ <tree editable="bottom">
+ <field name="date"/>
+ <field name="description"/>
+ <field name="nominal" sum="Total Penggunaan"/>
+ <field name="attachment"/>
+ </tree>
+ </field>
+ </page>
+ </notebook>
+
+ <group col="2">
+ <group class="oe_subtotal_footer oe_right">
+ <field name="currency_id" invisible="1"/>
+ <field name="grand_total" readonly="1" widget="monetary" options="{'currency_field': 'currency_id'}"/>
+ <field name="grand_total_use" readonly="1" widget="monetary" options="{'currency_field': 'currency_id'}"/>
+ <field name="value_down_payment" readonly="1" widget="monetary" options="{'currency_field': 'currency_id'}" style="font-weight: bold;"/>
+ <field name="remaining_value" readonly="1" widget="monetary" options="{'currency_field': 'currency_id'}"/>
+ </group>
+ </group>
+ </sheet>
+ <div class="oe_chatter">
+ <field name="message_follower_ids" widget="mail_followers"/>
+ <field name="message_ids" widget="mail_thread"/>
+ </div>
+ </form>
+ </field>
+ </record>
+
+ <record id="action_realization_down_payment" model="ir.actions.act_window">
+ <field name="name">Realisasi PUM</field>
+ <field name="res_model">realization.down.payment</field>
+ <field name="view_mode">tree,form</field>
+ </record>
+</odoo>