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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
|
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="user_pengajuan_tempo_request_tree" model="ir.ui.view">
<field name="name">user.pengajuan.tempo.request.tree</field>
<field name="model">user.pengajuan.tempo.request</field>
<field name="arch" type="xml">
<tree create="1" default_order="create_date desc">
<field name="user_id"/>
<field name="pengajuan_tempo_id"/>
<field name="create_date"/>
<field name="tempo_duration" attrs="{'readonly': [('state_tempo', '=', 'approval_director')]}"/>
<field name="tempo_limit" attrs="{'readonly': [('state_tempo', '=', 'approval_director')]}" placeholder="Contoh format, misalnya '10000000'" widget="monetary" options="{'currency_field': 'currency_id'}"/>
<!-- <field name="state_tempo"-->
<!-- decoration-danger="state_tempo == 'reject'"-->
<!-- decoration-warning="state_tempo in ('draft', 'approval_sales', 'approval_finance')"-->
<!-- decoration-success="state_tempo == 'approval_director'">-->
<!-- <tree>-->
<!-- <field name="state_tempo" invisible="1"/>-->
<!-- <field name="state_tempo_text" string="Status"/>-->
<!-- </tree>-->
<!-- </field>-->
<field name="state_tempo" invisible="1"/>
<field name="state_tempo_text" decoration-success="state_tempo_text == 'Approved'" decoration-danger="state_tempo_text == 'Rejected'" widget="badge" optional="show"/>
</tree>
</field>
</record>
<record id="user_pengajuan_tempo_request_form" model="ir.ui.view">
<field name="name">user.pengajuan.tempo.request.form</field>
<field name="model">user.pengajuan.tempo.request</field>
<field name="arch" type="xml">
<form create="0">
<header>
<button name="button_approve"
string="Approve Tempo"
attrs="{'invisible': [('state_tempo', 'in', ['approval_director','reject'])]}"
type="object"
class="oe_highlight"/>
<button name="button_reject"
string="Reject"
attrs="{'invisible': [('state_tempo', 'in', ['approval_director','reject'])]}"
type="object"
class="oe_highlight"/>
<button name="button_draft"
string="Reset to Draft"
attrs="{'invisible': [('state_tempo', '!=', 'reject')]}"
type="object"
class="oe_highlight"/>
<field name="state_tempo" widget="statusbar"
statusbar_visible="draft,approval_sales,approval_finance,approval_director"
statusbar_colors='{"reject":"red"}'/>
</header>
<sheet>
<group>
<group>
<field name="user_id" readonly="1"/>
<field name="pengajuan_tempo_id"/>
<field name="tempo_duration" attrs="{'readonly': [('state_tempo', '=', 'approval_director')]}"/>
<field name="tempo_limit"
attrs="{'readonly': [('state_tempo', '=', 'approval_director')]}"
placeholder="Contoh format, misalnya '10000000'" widget="monetary" options="{'currency_field': 'currency_id'}"/>
</group>
</group>
<notebook>
<page string="Informasi Usaha">
<!-- Informasi Usaha Section -->
<group>
<field name="name_tempo" />
<field name="industry_id_tempo" />
<field name="street_tempo" />
<field name="state_id_tempo" />
<field name="city_id_tempo" />
<field name="zip_tempo" />
<field name="mobile_tempo" />
<field name="bank_name_tempo" />
<field name="account_name_tempo" />
<field name="account_number_tempo" />
<field name="website_tempo" />
<field name="estimasi_tempo" />
<field name="tempo_duration_origin" />
<field name="tempo_limit_origin" />
<!-- <field name="category_produk_ids" widget="many2many_tags" />-->
</group>
</page>
<page string="Kontak Perusahaan">
<group>
<field name="direktur_name"/>
<field name="direktur_mobile"/>
<field name="direktur_email"/>
</group>
<group>
<field name="purchasing_name"/>
<field name="purchasing_mobile"/>
<field name="purchasing_email"/>
</group>
<group>
<field name="finance_name"/>
<field name="finance_mobile"/>
<field name="finance_email"/>
</group>
</page>
<Page string="Pengiriman">
<group>
<field name="pic_name"/>
<field name="pic_mobile"/>
<field name="street_pengiriman"/>
<field name="state_id_pengiriman"/>
<field name="city_id_pengiriman"/>
<field name="district_id_pengiriman"/>
<field name="subDistrict_id_pengiriman"/>
<field name="zip_pengiriman"/>
</group>
<group>
<field name="invoice_pic"/>
<field name="invoice_pic_mobile"/>
<field name="street_invoice"/>
<field name="state_id_invoice"/>
<field name="city_id_invoice"/>
<field name="district_id_invoice"/>
<field name="subDistrict_id_invoice"/>
<field name="zip_invoice"/>
</group>
<group>
<field name="tukar_invoice"/>
<field name="jadwal_bayar"/>
<field name="dokumen_prosedur" widget="many2many_binary"/>
<field name="dokumen_pengiriman"/>
<field name="dokumen_pengiriman_input"/>
<field name="dokumen_invoice"/>
</group>
</Page>
<Page string="Suppliers">
<field name="supplier_ids">
<tree>
<field name="name_supplier"/>
<field name="pic_name"/>
<field name="phone"/>
<field name="tempo_duration"/>
<field name="credit_limit"/>
</tree>
</field>
</Page>
<Page string="Dokumen">
<group >
<field name="dokumen_npwp" widget="many2many_binary" options="{'no_create': True, 'no_open': False}"/>
<field name="dokumen_sppkp" widget="many2many_binary" options="{'no_create': True, 'no_open': False}"/>
<field name="dokumen_nib" widget="many2many_binary" options="{'no_create': True, 'no_open': False}"/>
<field name="dokumen_siup" widget="many2many_binary" options="{'no_create': True, 'no_open': False}"/>
<field name="dokumen_tdp" widget="many2many_binary" options="{'no_create': True, 'no_open': False}"/>
<field name="dokumen_skdp" widget="many2many_binary" options="{'no_create': True, 'no_open': False}"/>
<field name="dokumen_skt" widget="many2many_binary" options="{'no_create': True, 'no_open': False}"/>
<field name="dokumen_akta_pendirian" widget="many2many_binary" options="{'no_create': True, 'no_open': False}"/>
<field name="dokumen_akta_perubahan" widget="many2many_binary" options="{'no_create': True, 'no_open': False}"/>
<field name="dokumen_tempat_bekerja" widget="many2many_binary" options="{'no_create': True, 'no_open': False}"/>
<field name="dokumen_foto_kantor" widget="many2many_binary" options="{'no_create': True, 'no_open': False}"/>
<field name="dokumen_ktp_dirut" widget="many2many_binary" options="{'no_create': True, 'no_open': False}"/>
<field name="dokumen_laporan_keuangan" widget="many2many_binary" options="{'no_create': True, 'no_open': False}"/>
<field name="dokumen_ktp_dirut" widget="many2many_binary" options="{'no_create': True, 'no_open': False}"/>
</group>
</Page>
</notebook>
</sheet>
<div class="oe_chatter">
<field name="message_ids" widget="mail_thread"/>
</div>
</form>
</field>
</record>
<!-- Wizard for Reject Reason -->
<record id="view_reject_reason_wizard_form" model="ir.ui.view">
<field name="name">reject.reason.wizard.form</field>
<field name="model">reject.reason.wizard</field>
<field name="arch" type="xml">
<form string="Reject Reason">
<group>
<field name="reason_reject" widget="text"/>
</group>
<footer>
<button string="Confirm" type="object" name="confirm_reject" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel"/>
</footer>
</form>
</field>
</record>
<record id="action_reject_reason_wizard" model="ir.actions.act_window">
<field name="name">Reject Reason</field>
<field name="res_model">reject.reason.wizard</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
<record id="view_confirm_approval_wizard_form" model="ir.ui.view">
<field name="name">confirm.approval.wizard.form</field>
<field name="model">confirm.approval.wizard</field>
<field name="arch" type="xml">
<form string="Konfirmasi Approval">
<group>
<p>Apakah Anda yakin ingin mengapprove tempo ini?</p>
</group>
<footer>
<button string="Batal" class="btn-secondary" special="cancel"/>
<button string="Konfirmasi" type="object" name="confirm_approval" class="btn-primary"/>
</footer>
</form>
</field>
</record>
<record id="mail_template_res_user_company_tempo_to_aprove_director" model="mail.template">
<field name="name">Users: Company Tempo To Approve Director</field>
<field name="model_id" ref="indoteknik_custom.model_user_pengajuan_tempo_request"/>
<field name="subject">Pengajuan Tempo Harus di Periksa!</field>
<field name="email_from">"Indoteknik.com" <noreply@indoteknik.com></field>
<field name="reply_to">sales@indoteknik.com</field>
<field name="email_to">akbar@fixcomart.co.id</field>
<!-- <field name="email_to">sapiabon768@gmail.com</field>-->
<field name="body_html" type="html">
<table border="0" cellpadding="0" cellspacing="0" style="padding-top: 16px; background-color: #F1F1F1; font-family:Inter, Helvetica, Verdana, Arial,sans-serif; line-height: 24px; color: #454748; width: 100%; border-collapse:separate;">
<tr><td align="center">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="font-size: 13px; padding: 16px; background-color: white; color: #454748; border-collapse:separate;">
<!-- HEADER -->
<tbody>
<tr>
<td align="center" style="min-width: 590px;">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
<tr>
<td valign="middle">
<span></span>
</td>
</tr>
<tr>
<td colspan="2" style="text-align:center;">
<hr width="100%" style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;" />
</td>
</tr>
</table>
</td>
</tr>
<!-- CONTENT -->
<tr>
<td align="center" style="min-width: 590px;">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
<tr><td style="padding-bottom: 24px;"><b>Halo Pak Akbar,</b></td></tr>
<tr><td style="padding-bottom: 16px;">Kami sampaikan informasi bahwa saat ini terdapat pengajuan Pembayaran Tempo dari ${object.pengajuan_tempo_id.name_tempo.name} telah melalui tahap persetujuan awal dari Manager Sales & diverifikasi oleh ${object.write_uid.name} dari tim Finance.</td></tr>
<tr><td style="padding-bottom: 16px;">Untuk proses persetujuan akhir, mohon Bapak dapat segera meninjau dan mengevaluasi atas pengajuan terhadap data yang telah diberikan oleh ${object.pengajuan_tempo_id.name_tempo.name}.</td></tr>
<tr><td style="padding-bottom: 2px;"><b>Hormat kami,</b></td></tr>
<tr><td style="padding-bottom: 2px;">PT. INDOTEKNIK DOTCOM GEMILANG</td></tr>
<tr>
<td valign="middle" align="left">
<img src="https://erp.indoteknik.com/api/image/ir.attachment/datas/2135765" alt="Indoteknik" style="max-width: 50%; height: auto;"></img>
</td>
</tr>
<tr>
<td style="text-align:center;">
<hr width="100%"
style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;" />
</td>
</tr>
</table>
</td>
</tr>
<!-- CONTENT -->
</tbody>
</table>
</td></tr>
</table>
</field>
</record>
<record id="mail_template_res_user_company_tempo_approved" model="mail.template">
<field name="name">Users: Company Tempo Approved</field>
<field name="model_id" ref="indoteknik_custom.model_user_pengajuan_tempo_request"/>
<field name="subject">Pengajuan Tempo Anda di Indoteknik.com Telah Disetujui!</field>
<field name="email_from">"Indoteknik.com" <noreply@indoteknik.com></field>
<field name="reply_to">sales@indoteknik.com</field>
<field name="email_to">${object.user_id.email | safe}</field>
<field name="body_html" type="html">
<table border="0" cellpadding="0" cellspacing="0" style="padding-top: 16px; background-color: #F1F1F1; font-family:Inter, Helvetica, Verdana, Arial,sans-serif; line-height: 24px; color: #454748; width: 100%; border-collapse:separate;">
<tr><td align="center">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="font-size: 13px; padding: 16px; background-color: white; color: #454748; border-collapse:separate;">
<!-- HEADER -->
<tbody>
<tr>
<td align="center" style="min-width: 590px;">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
<tr>
<td valign="middle">
<span></span>
</td>
</tr>
<tr>
<td colspan="2" style="text-align:center;">
<hr width="100%" style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;" />
</td>
</tr>
</table>
</td>
</tr>
<!-- CONTENT -->
<tr>
<td align="center" style="min-width: 590px;">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
<tr><td style="padding-bottom: 24px;"><b>Hai. ${object.pengajuan_tempo_id.name_tempo.name},</b></td></tr>
<tr><td style="padding-bottom: 16px;">Kabar baik! Kami dengan senang hati menginformasikan bahwa pengajuan tempo pembayaran anda di Indoteknik.com telah disetujui dengan detail sebagai berikut.</td></tr>
<tr><td style="padding-bottom: 4px;"><b>Limit Pembayaran Tempo : Rp ${object.format_currency(object.user_id.tempo_limit)}</b></td></tr>
<tr><td style="padding-bottom: 16px;"><b>Durasi Pembayaran Tempo : ${object.user_id.tempo_duration.name}</b></td></tr>
<tr>
<td style="padding-bottom: 16px; ">Anda dapat melakukan pembayaran sesuai dengan jangka waktu yang telah disepakati. Detail lengkap mengenai transaksi anda, termasuk tanggal jatuh tempo & Pengajuan Kenaikan Limit Tempo, dapat anda lihat di akun <a href="https://indoteknik.com/my/profile">Profile Indoteknik.com</a> .</td>
</tr>
<tr><td style="padding-bottom: 16px;">Terima kasih atas kepercayaan anda kepada Indoteknik.com.</td></tr>
<tr><td style="padding-bottom: 2px;"><b>Hormat kami,</b></td></tr>
<tr><td style="padding-bottom: 2px;">PT. INDOTEKNIK DOTCOM GEMILANG</td></tr>
<tr>
<td valign="middle" align="left">
<img src="https://erp.indoteknik.com/api/image/ir.attachment/datas/2135765" alt="Indoteknik" style="max-width: 50%; height: auto;"></img>
</td>
</tr>
<tr>
<td style="text-align:center;">
<hr width="100%"
style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;" />
</td>
</tr>
</table>
</td>
</tr>
<!-- CONTENT -->
</tbody>
</table>
</td></tr>
</table>
</field>
</record>
<record id="mail_template_res_user_company_tempo_reject" model="mail.template">
<field name="name">Users: Company Tempo Reject</field>
<field name="model_id" ref="indoteknik_custom.model_user_pengajuan_tempo_request"/>
<field name="subject">Mohon Maaf Pengajuan Tempo anda kami Tolak</field>
<field name="email_from">"Indoteknik.com" <noreply@indoteknik.com></field>
<field name="reply_to">sales@indoteknik.com</field>
<field name="email_to">${object.user_id.email | safe}</field>
<!-- <field name="email_to">sapiabon768@gmail.com</field>-->
<field name="body_html" type="html">
<table border="0" cellpadding="0" cellspacing="0" style="padding-top: 16px; background-color: #F1F1F1; font-family:Inter, Helvetica, Verdana, Arial,sans-serif; line-height: 24px; color: #454748; width: 100%; border-collapse:separate;">
<tr><td align="center">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="font-size: 13px; padding: 16px; background-color: white; color: #454748; border-collapse:separate;">
<!-- HEADER -->
<tbody>
<tr>
<td align="center" style="min-width: 590px;">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
<tr>
<td valign="middle">
<span></span>
</td>
</tr>
<tr>
<td colspan="2" style="text-align:center;">
<hr width="100%" style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;" />
</td>
</tr>
</table>
</td>
</tr>
<!-- CONTENT -->
<tr>
<td align="center" style="min-width: 590px;">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
<tr><td style="padding-bottom: 24px;"><b>Hai. ${object.pengajuan_tempo_id.name_tempo.name},</b></td></tr>
<tr><td style="padding-bottom: 16px;">Kami sampaikan dengan sangat menyesal bahwa pengajuan permohonan tempo pembayaran Anda yang diajukan pada tanggal ${format_date(object.pengajuan_tempo_id.create_date, 'dd MMMM yyyy')} tidak dapat kami setujui.</td></tr>
<tr><td style="padding-bottom: 16px;">Keputusan ini telah kami pertimbangkan secara matang berdasarkan beberapa faktor, diantaranya alasan tidak disetujuinya adalah ${object.reason_reject}</td></tr>
<tr>
<td style="padding-bottom: 16px; ">Kami memahami bahwa hal ini mungkin mengecewakan. Namun, kami berharap Anda dapat memahami kebijakan perusahaan kami.</td>
</tr><tr>
<td style="padding-bottom: 16px; ">Jangan khawatir anda dapat melakukan pembelian dengan metode pembayaran CBD (Cash Before Delivery) di website indoteknik.com.</td>
</tr>
<tr><td style="padding-bottom: 16px;">Terima kasih atas Perhatian & Pengertiannya.</td></tr>
<tr><td style="padding-bottom: 2px;"><b>Hormat kami,</b></td></tr>
<tr><td style="padding-bottom: 2px;">PT. INDOTEKNIK DOTCOM GEMILANG</td></tr>
<tr>
<td valign="middle" align="left">
<img src="https://erp.indoteknik.com/api/image/ir.attachment/datas/2135765" alt="Indoteknik" style="max-width: 50%; height: auto;"></img>
</td>
</tr>
<tr>
<td style="text-align:center;">
<hr width="100%"
style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;" />
</td>
</tr>
</table>
</td>
</tr>
<!-- CONTENT -->
</tbody>
</table>
</td></tr>
</table>
</field>
</record>
<record id="action_user_pengajuan_tempo_request" model="ir.actions.act_window">
<field name="name">User Pengajuan Tempo Request</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">user.pengajuan.tempo.request</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem
id="menu_user_pengajuan_tempo_request"
name="User Pengajuan Tempo Request"
parent="account.menu_finance_receivables"
sequence="3"
action="action_user_pengajuan_tempo_request"
/>
</odoo>
|