summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/down_payment_realization.xml
blob: 2ee1a6d5e6d9fe856aaa85fc1bf18a02c8988b3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<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">
                <header>
                    <button name="action_validation"
                        type="object"
                        string="Validasi"
                        class="btn-primary"/>
                    <field name="done_status" widget="statusbar"
                        statusbar_visible="remaining,done_not_realized,done_realized"
                        statusbar_colors='{"done_realized":"green"}'
                        readonly="1"/>
                </header>

                <sheet>
                    <h1><field name="name" class="oe_title"/></h1>

                    <group col="2">
                        <group>
                            <field name="pum_id" readonly="1"/>
                            <field name="title" required="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="false" create="false" delete="false">
                                    <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>
                                    <field name="date"/>
                                    <field name="description"/>
                                    <field name="nominal" sum="Total Penggunaan"/>
                                    <field name="done_attachment"/>
                                </tree>

                                <form>
                                    <group>
                                        <field name="date"/>
                                        <field name="description"/>
                                        <field name="nominal"/>
                                        <field name="attachment_type"/>

                                        <field name="attachment_file_pdf"
                                            filename="attachment_filename_pdf"
                                            widget="pdf_viewer"
                                            attrs="{'invisible': [('attachment_type', '!=', 'pdf')]}"/>

                                        <field name="attachment_file_image"
                                            filename="attachment_filename_image"
                                            widget="image"
                                            attrs="{'invisible': [('attachment_type', '!=', 'image')]}"/>
                                        <field name="done_attachment"/>
                                    </group>
                                </form>
                            </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>