blob: c0181fcf0cbc0af32e9d246be45cb9a594a9fe81 (
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
<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"/>
<button name="action_approval_check"
type="object"
string="Checking/Approval"
attrs="{}"/>
<button name="action_cab"
type="object"
string="AP Only"/>
<field name="status" widget="statusbar"
statusbar_visible="draft,pengajuan1,pengajuan2,pengajuan3,approved"
statusbar_colors='{"reject":"red"}'
readonly="1"/>
</header>
<sheet>
<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 Entries"/>
<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"/>
<field name="title" required="1"/>
<field name="goals" required="1"/>
<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>
<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="account_id"/>
<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>
|