diff options
Diffstat (limited to 'indoteknik_custom/views')
| -rw-r--r-- | indoteknik_custom/views/account_move.xml | 11 | ||||
| -rw-r--r-- | indoteknik_custom/views/coretax_faktur.xml | 49 | ||||
| -rwxr-xr-x | indoteknik_custom/views/purchase_order.xml | 48 | ||||
| -rw-r--r-- | indoteknik_custom/views/res_partner.xml | 107 | ||||
| -rw-r--r-- | indoteknik_custom/views/res_users.xml | 158 | ||||
| -rwxr-xr-x | indoteknik_custom/views/sale_order.xml | 10 | ||||
| -rw-r--r-- | indoteknik_custom/views/stock_picking.xml | 27 | ||||
| -rw-r--r-- | indoteknik_custom/views/user_company_request.xml | 9 | ||||
| -rw-r--r-- | indoteknik_custom/views/user_pengajuan_tempo.xml | 344 | ||||
| -rw-r--r-- | indoteknik_custom/views/user_pengajuan_tempo_line.xml | 42 | ||||
| -rw-r--r-- | indoteknik_custom/views/user_pengajuan_tempo_request.xml | 416 | ||||
| -rw-r--r-- | indoteknik_custom/views/website_telegram.xml | 59 |
12 files changed, 1267 insertions, 13 deletions
diff --git a/indoteknik_custom/views/account_move.xml b/indoteknik_custom/views/account_move.xml index 2863af57..36b292e8 100644 --- a/indoteknik_custom/views/account_move.xml +++ b/indoteknik_custom/views/account_move.xml @@ -59,6 +59,9 @@ <field name="so_delivery_amt"/> <field name="flag_delivery_amt"/> </field> + <field name="amount_untaxed" position="after"> + <field name="other_subtotal" invisible="1"/> + </field> <notebook position="inside"> <page string="Due Extension" attrs="{'invisible': [('move_type', '!=', 'out_invoice')]}"> <field name="due_line"> @@ -163,5 +166,13 @@ <field name="state">code</field> <field name="code">action = records.open_form_multi_create_reklas_penjualan()</field> </record> + + <record id="action_export_faktur" model="ir.actions.server"> + <field name="name">Export Faktur ke XML</field> + <field name="model_id" ref="account.model_account_move" /> + <field name="binding_model_id" ref="account.model_account_move" /> + <field name="state">code</field> + <field name="code">action = records.export_faktur_to_xml()</field> + </record> </data> </odoo>
\ No newline at end of file diff --git a/indoteknik_custom/views/coretax_faktur.xml b/indoteknik_custom/views/coretax_faktur.xml new file mode 100644 index 00000000..45eea23f --- /dev/null +++ b/indoteknik_custom/views/coretax_faktur.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <data> + <record id="act_coretax_faktur" model="ir.actions.act_window"> + <field name="name">Export Faktur Pajak Keluaran XML Version</field> + <field name="type">ir.actions.act_window</field> + <field name="res_model">coretax.faktur</field> + <field name="view_mode">form</field> + <field name="target">new</field> + </record> + + <record id="view_coretax_faktur" model="ir.ui.view"> + <field name="name">view coretax faktur</field> + <field name="model">coretax.faktur</field> + <field name="type">form</field> + <field name="arch" type="xml"> + <form string="Export Pajak Keluaran"> + <p> + Klik tombol Export di bawah untuk mulai export Faktur Pajak Keluaran. + Data yang diexport adalah Customer Invoice yang berstatus Open dan belum diexport ke E-Faktur. + </p> + + <p> + Setelah proses export Faktur Pajak Keluaran selesai dilakukan, + download file ini: + </p> + <group> + <field name="export_file" filename="export_filename" readonly="1"/> + </group> + + <p> + Lalu import ke program E-Faktur DJP melalui menu <b>Referensi - Pajak Keluaran - Import</b> + </p> + + <footer> + <button string="Export" name="export_to_download" type="object" class="btn-primary"/> + <button string="Cancel" class="btn-default" special="cancel"/> + </footer> + </form> + </field> + </record> + + <menuitem id="coretax_faktur_export" + parent="vit_efaktur.menu_vit_efaktur_keluaran" + sequence="80" + name="Export FP. Keluaran XML" + action="act_coretax_faktur" /> + </data> +</odoo>
\ No newline at end of file diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml index d22c3b5c..022937f4 100755 --- a/indoteknik_custom/views/purchase_order.xml +++ b/indoteknik_custom/views/purchase_order.xml @@ -20,6 +20,11 @@ type="object" attrs="{'invisible': [('approval_status', '=', 'approved')]}" /> + <button name="po_approve_unlock" + string="Ask Approval Unlock PO" + type="object" + attrs="{'invisible': [('approval_status_unlock', '=', 'approved')]}" + /> <button name="indoteknik_custom.action_view_uangmuka_pembelian" string="UangMuka" type="action" attrs="{'invisible': [('approval_status', '!=', 'approved')]}"/> </button> @@ -43,6 +48,9 @@ <field name="revisi_po"/> <field name="not_update_purchasepricelist"/> </field> + <field name="approval_status" position="after"> + <field name="approval_status_unlock" invisible="True"/> + </field> <field name="incoterm_id" position="after"> <field name="amount_total_without_service"/> <field name="delivery_amt"/> @@ -52,6 +60,8 @@ <field name="summary_qty_po"/> <field name="count_line_product"/> <field name="payment_term_id"/> + <field name="total_cost_service" attrs="{'required': [('partner_id', 'in', [9688, 29712])]}"/> + <field name="total_delivery_amt" attrs="{'required': [('partner_id', 'in', [9688, 29712])]}"/> </field> <field name="amount_total" position="after"> <field name="total_margin"/> @@ -59,6 +69,9 @@ <field name="total_percent_margin"/> <field name="total_so_percent_margin"/> </field> + <field name="partner_ref" position="before"> + <field name="store_name" attrs="{'invisible': [('partner_id', 'not in', [9688, 29712])]}"/> + </field> <field name="product_id" position="before"> <field name="line_no" attrs="{'readonly': 1}" optional="hide"/> </field> @@ -74,6 +87,13 @@ <field name="qty_available" readonly="1" optional="hide"/> <field name="qty_reserved" readonly="1" optional="hide"/> <field name="suggest" readonly="1" widget="badge" decoration-danger="suggest == 'harus beli'" decoration-success="suggest == 'masih cukup'"/> + <field name="delivery_amt" optional="hide"/> + <field name="delivery_amt_per_item" optional="hide"/> + <field name="contribution_delivery_amt" optional="hide"/> + <field name="cost_service" optional="hide"/> + <field name="cost_service_per_item" optional="hide"/> + <field name="contribution_cost_service" optional="hide"/> + <field name="ending_price" optional="hide"/> <!-- <field name="suggest" readonly="1"/> --> </field> <field name="product_id" position="before"> @@ -137,7 +157,30 @@ </field> </record> </data> - + <data> + <record id="view_purchase_order_unlock_wizard_form" model="ir.ui.view"> + <field name="name">purchase.order.unlock.wizard.form</field> + <field name="model">purchase.order.unlock.wizard</field> + <field name="arch" type="xml"> + <form string="Reject Reason"> + <group> + <field name="alasan" 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_purchase_order_unlock_wizard" model="ir.actions.act_window"> + <field name="name">Reject Reason</field> + <field name="res_model">purchase.order.unlock.wizard</field> + <field name="view_mode">form</field> + <field name="target">new</field> + </record> + </data> <data> <record id="rfq_order_tree_view_inherit" model="ir.ui.view"> @@ -153,6 +196,9 @@ <field name="logbook_bill_id" optional="hide"/> <field name="status_printed" optional="hide"/> </field> + <field name="partner_id" position="after"> + <field name="store_name" optional="hide"/> + </field> </field> </record> </data> diff --git a/indoteknik_custom/views/res_partner.xml b/indoteknik_custom/views/res_partner.xml index d3ef2657..863b8514 100644 --- a/indoteknik_custom/views/res_partner.xml +++ b/indoteknik_custom/views/res_partner.xml @@ -56,6 +56,9 @@ <field name="npwp" position="before"> <field name="customer_type" required="1"/> </field> + <field name="alamat_lengkap_text" position="after"> + <field name="nitku" /> + </field> <field name="is_berikat" position="after"> <field name="pakta_integritas"/> </field> @@ -65,6 +68,7 @@ <field name="vat" position="after"> <field name="email_finance" widget="email"/> <field name="email_sales" widget="email"/> + <field name="telegram_id"/> <field name="use_so_approval" attrs="{'invisible': [('parent_id', '!=', False), ('company_type', '!=', 'company')]}" /> <field name="use_only_ready_stock" attrs="{'invisible': [('parent_id', '!=', False), ('company_type', '!=', 'company')]}" /> <field name="web_role" attrs="{'invisible': ['|', ('parent_id', '=', False), ('company_type', '=', 'company')]}" /> @@ -81,6 +85,109 @@ <attribute name="readonly">1</attribute> </xpath> <notebook> + <page string="Pengajuan Tempo"> + <!-- Informasi Usaha Section --> + <group string="Informasi Usaha" colspan="4"> + <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="portal"/> + <field name="estimasi_tempo"/> + <field name="tempo_duration"/> + <field name="tempo_limit"/> + <field name="category_produk_ids" widget="many2many_tags"/> + </group> + </group> + + <!-- Kontak Perusahaan Section --> + <group string="Kontak Perusahaan" colspan="4"> + <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> + </group> + + <!-- Pengiriman Section --> + <group string="Pengiriman" colspan="4"> + <group> + <field name="pic_name"/> + <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="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_pengiriman"/> + <field name="dokumen_pengiriman_input"/> + <field name="dokumen_invoice"/> + </group> + </group> + + <!-- Supplier Lines Section --> + <group 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> + </group> + + <group string="Dokumen"> + <field name="dokumen_npwp" /> + <field name="dokumen_sppkp" /> + <field name="dokumen_nib" /> + <field name="dokumen_siup" /> + <field name="dokumen_tdp" /> + <field name="dokumen_skdp" /> + <field name="dokumen_skt"/> + <field name="dokumen_akta_pendirian" /> + <field name="dokumen_akta_perubahan" /> + <field name="dokumen_tempat_bekerja" /> + <field name="dokumen_foto_kantor" /> + <field name="dokumen_ktp_dirut" /> + <field name="dokumen_laporan_keuangan" /> + <field name="dokumen_ktp_dirut" /> + </group> + </page> + </notebook> + <notebook> <page string="Merchant"> <group> <group> diff --git a/indoteknik_custom/views/res_users.xml b/indoteknik_custom/views/res_users.xml index 39b9d43e..9553bb91 100644 --- a/indoteknik_custom/views/res_users.xml +++ b/indoteknik_custom/views/res_users.xml @@ -5,7 +5,7 @@ <field name="model_id" ref="base.model_res_users"/> <field name="subject">Aktivasi Akun - Indoteknik.com</field> <field name="email_from">"Indoteknik.com" <noreply@indoteknik.com></field> - <field name="reply_to">noreply@indoteknik.com</field> + <field name="reply_to">sales@indoteknik.com</field> <field name="email_to">${object.login | 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;"> @@ -45,6 +45,11 @@ <tr><td style="padding-bottom: 2px;">Hormat kami,</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;" /> @@ -65,7 +70,7 @@ <field name="model_id" ref="base.model_res_users"/> <field name="subject">Email Pendaftaran Bisnis dalam Proses Review</field> <field name="email_from">"Indoteknik.com" <noreply@indoteknik.com></field> - <field name="reply_to">noreply@indoteknik.com</field> + <field name="reply_to">sales@indoteknik.com</field> <field name="email_to">${object.login | 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;"> @@ -105,6 +110,76 @@ <tr><td style="padding-bottom: 2px;"><strong>Hormat kami,</strong></td></tr> <tr><td style="padding-bottom: 2px;">Indoteknik.com</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_request_switch" model="mail.template"> + <field name="name">Users: Company Request</field> + <field name="model_id" ref="base.model_res_users"/> + <field name="subject">Email Pendaftaran Bisnis dalam Proses Review</field> + <field name="email_from">"Indoteknik.com" <noreply@indoteknik.com></field> + <field name="reply_to">sales@indoteknik.com</field> + <field name="email_to">${object.login | 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>Halo ${object.name},</b></td></tr> + + <tr><td style="padding-bottom: 16px;">Terima kasih atas kepercayaan Anda dengan mendaftarkan bisnis Anda di Indoteknik.com. Permohonan Anda saat ini sedang dalam proses review oleh tim kami.</td></tr> + <tr><td style="padding-bottom: 16px;">Saat ini, kami sedang melakukan pengecekan akhir pada data yang Anda berikan. Proses ini biasanya memakan waktu sekitar 2 x 24 jam.</td></tr> + <tr><td style="padding-bottom: 16px;">Setelah proses review selesai, kami akan segera menginformasikan status akun bisnis Anda melalui email.</td></tr> + <tr><td style="padding-bottom: 16px;">Jika ada pertanyaan lebih lanjut, jangan ragu untuk menghubungi kami di <a href="mailto:sales@indoteknik.com">sales@indoteknik.com</a> atau hubungi whatsapp kami di <a href="https://wa.me/6281717181922">0817-1718-1922</a></td></tr> + <tr><td style="padding-bottom: 16px;">Terima kasih atas perhatiannya.</td></tr> + + <tr><td style="padding-bottom: 2px;"><strong>Hormat kami,</strong></td></tr> + <tr><td style="padding-bottom: 2px;">Indoteknik.com</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;" /> @@ -125,7 +200,7 @@ <field name="model_id" ref="base.model_res_users"/> <field name="subject">Email Pendaftaran Bisnis Berhasil</field> <field name="email_from">"Indoteknik.com" <noreply@indoteknik.com></field> - <field name="reply_to">noreply@indoteknik.com</field> + <field name="reply_to">sales@indoteknik.com</field> <field name="email_to">${object.login | 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;"> @@ -166,6 +241,74 @@ <tr><td style="padding-bottom: 2px;"><b>Hormat kami,</b></td></tr> <tr><td style="padding-bottom: 2px;">Indoteknik.com</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_switch_approve" model="mail.template"> + <field name="name">Users: Switch Account Success</field> + <field name="model_id" ref="base.model_res_users"/> + <field name="subject">Selamat! Bisnis Anda Sudah Naik Kelas Jadi PKP!</field> + <field name="email_from">"Indoteknik.com" <noreply@indoteknik.com></field> + <field name="reply_to">sales@indoteknik.com</field> + <field name="email_to">${object.login | 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.parent_name},</b></td></tr> + + <tr><td style="padding-bottom: 16px;">Selamat! Akun bisnis Anda di indoteknik.com sekarang sudah resmi menjadi PKP dari yang sebelumnya Non-PKP.</td></tr> + <tr><td style="padding-bottom: 16px;">Jangan lupa untuk mengecek kembali semua data perusahaan kamu, ya. Pastikan NPWP dan informasi Perusahaan lainnya sudah kamu isi dengan benar.</td></tr> + <tr><td style="padding-bottom: 16px;">Kamu juga dapat mengubah informasi perusahaan dengan mengunjungi profil atau <a href="https://indoteknik.com/my/profile">klik disini</a></td></tr> + + <tr><td style="padding-bottom: 2px;">Industrial Supply & Solutions</td></tr> + <tr><td style="padding-bottom: 2px;">Tim Indoteknik.com</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;" /> @@ -186,7 +329,7 @@ <field name="model_id" ref="base.model_res_users"/> <field name="subject">Email Pendaftaran Bisnis Tidak Berhasil</field> <field name="email_from">"Indoteknik.com" <noreply@indoteknik.com></field> - <field name="reply_to">noreply@indoteknik.com</field> + <field name="reply_to">sales@indoteknik.com</field> <field name="email_to">${object.login | 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;"> @@ -239,6 +382,11 @@ <tr><td style="padding-bottom: 2px;"><b>Hormat kami,</b></td></tr> <tr><td style="padding-bottom: 2px;">Indoteknik.com</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;" /> @@ -254,5 +402,7 @@ </table> </field> </record> + + </data> </odoo>
\ No newline at end of file diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml index 703b4d49..008a04ed 100755 --- a/indoteknik_custom/views/sale_order.xml +++ b/indoteknik_custom/views/sale_order.xml @@ -14,7 +14,7 @@ <button name="sale_order_approve" string="Ask Approval" type="object" - attrs="{'invisible': [('approval_status', 'in', ['pengajuan1', 'pengajuan2', 'approved'])]}" + attrs="{'invisible': [('approval_status', '=', ['approved'])]}" /> <button name="action_web_approve" string="Web Approve" @@ -107,6 +107,14 @@ {'readonly': [('state', 'in', ('done','cancel'))]} </attribute> </xpath> + <xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree" position="inside"> + <field name="desc_updatable" invisible="1"/> + </xpath> + <xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='name']" position="attributes"> + <attribute name="attrs"> + {'readonly': [('desc_updatable', '=', False)]} + </attribute> + </xpath> <xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='price_unit']" position="attributes"> <attribute name="attrs"> { diff --git a/indoteknik_custom/views/stock_picking.xml b/indoteknik_custom/views/stock_picking.xml index fab83885..8acba608 100644 --- a/indoteknik_custom/views/stock_picking.xml +++ b/indoteknik_custom/views/stock_picking.xml @@ -61,10 +61,17 @@ type="object" attrs="{'invisible': [('carrier_id', '!=', 151)]}" /> + <button name="action_fetch_lalamove_order" + string="Tracking Lalamove" + type="object" + attrs="{'invisible': [('carrier_id', '!=', 9)]}" + /> </button> <field name="backorder_id" position="after"> <field name="summary_qty_detail"/> <field name="count_line_detail"/> + <field name="dokumen_tanda_terima"/> + <field name="dokumen_pengiriman"/> </field> <field name="weight_uom_name" position="after"> <group> @@ -79,6 +86,9 @@ <field name="partner_id" position="after"> <field name="real_shipping_id"/> </field> + <field name="product_uom_qty" position="attributes"> + <attribute name="attrs">{'readonly': [('parent.picking_type_code', '=', 'incoming')]}</attribute> + </field> <field name="date_done" position="after"> <field name="arrival_time"/> </field> @@ -150,7 +160,7 @@ <field name="sj_documentation" widget="image" /> <field name="paket_documentation" widget="image" /> </group> - <group> + <group attrs="{'invisible': [('carrier_id', '!=', 151)]}"> <field name="envio_id" invisible="1"/> <field name="envio_code"/> <field name="envio_ref_code"/> @@ -168,6 +178,17 @@ <field name="envio_latest_longitude" invisible="1"/> <field name="tracking_by" invisible="1"/> </group> + <group attrs="{'invisible': [('carrier_id', '!=', 9)]}"> + <field name="lalamove_data" invisible="1"/> + <field name="lalamove_order_id"/> + <field name="lalamove_address"/> + <field name="lalamove_name"/> + <field name="lalamove_phone"/> + <field name="lalamove_status"/> + <field name="lalamove_delivered_at"/> + <field name="lalamove_image_url" invisible="1"/> + <field name="lalamove_image_html"/> + </group> </group> </page> <!-- <page string="Check Product" name="check_product"> @@ -182,8 +203,10 @@ <field name="name">check.product.tree</field> <field name="model">check.product</field> <field name="arch" type="xml"> - <tree editable="bottom"> + <tree editable="bottom" decoration-warning="status == 'Pending'" decoration-success="status == 'Done'"> <field name="product_id"/> + <field name="quantity"/> + <field name="status"/> </tree> </field> </record> --> diff --git a/indoteknik_custom/views/user_company_request.xml b/indoteknik_custom/views/user_company_request.xml index a4a9d842..88d04c64 100644 --- a/indoteknik_custom/views/user_company_request.xml +++ b/indoteknik_custom/views/user_company_request.xml @@ -8,7 +8,7 @@ <field name="user_id"/> <field name="user_company_id"/> <field name="user_input"/> - <field + <field name="is_approve" widget="badge" decoration-success="is_approve == 'approved'" @@ -33,8 +33,8 @@ <field name="similar_company_ids" invisible="1"/> <field name="user_company_id" domain="[('id', 'in', similar_company_ids)]"/> <field name="user_input" readonly="1"/> - <field - name="is_approve" + <field + name="is_approve" required="1" decoration-success="is_approve == 'approved'" decoration-danger="is_approve == 'rejected'" @@ -54,7 +54,7 @@ <field name="res_model">user.company.request</field> <field name="view_mode">tree,form</field> </record> - <menuitem id="res_partner_menu_user" + <menuitem id="res_partner_menu_user" name="User Request" parent="contacts.menu_contacts" groups="base.group_system" @@ -66,5 +66,4 @@ sequence="4" action="action_user_company_request" groups="base.group_system"/> - </odoo>
\ No newline at end of file diff --git a/indoteknik_custom/views/user_pengajuan_tempo.xml b/indoteknik_custom/views/user_pengajuan_tempo.xml new file mode 100644 index 00000000..33ad91cf --- /dev/null +++ b/indoteknik_custom/views/user_pengajuan_tempo.xml @@ -0,0 +1,344 @@ +<odoo> + <!-- Form view for userPengajuanTempo --> + <record id="view_user_pengajuan_tempo_form" model="ir.ui.view"> + <field name="name">user.pengajuan.tempo.form</field> + <field name="model">user.pengajuan.tempo</field> + <field name="arch" type="xml"> + <form string="Pengajuan Tempo"> + <sheet> + <!-- Informasi Usaha Section --> + <group string="Informasi Usaha" colspan="4"> + <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="district_id_tempo"/> + <field name="subDistrict_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="portal"/> + <field name="estimasi_tempo"/> + <field name="tempo_duration"/> + <field name="tempo_limit"/> + <field name="category_produk_ids" widget="many2many_tags"/> + </group> + </group> + + <!-- Kontak Perusahaan Section --> + <group string="Kontak Perusahaan" colspan="4"> + <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> + </group> + + <!-- Pengiriman Section --> + <group string="Pengiriman" colspan="4"> + <group> + <field name="pic_name"/> + <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="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_pengiriman"/> + <field name="dokumen_pengiriman_input"/> + <field name="dokumen_invoice"/> + </group> + </group> + + <!-- Supplier Lines Section --> + <group 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> + </group> + + <group string="Dokumen"> + <field name="dokumen_npwp" widget="many2many_binary" /> + <field name="dokumen_sppkp" widget="many2many_binary" /> + <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" /> + <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> + </sheet> + <div class="oe_chatter"> + <field name="message_ids" widget="mail_thread"/> + </div> + </form> + </field> + </record> + + <!-- Tree view for userPengajuanTempo --> + <record id="view_user_pengajuan_tempo_tree" model="ir.ui.view"> + <field name="name">user.pengajuan.tempo.tree</field> + <field name="model">user.pengajuan.tempo</field> + <field name="arch" type="xml"> + <tree string="Pengajuan Tempo"> + <field name="name_tempo"/> + <field name="industry_id_tempo"/> + <field name="tempo_limit"/> + <field name="estimasi_tempo"/> + </tree> + </field> + </record> + + <record id="mail_template_res_user_company_request_tempo_review" model="mail.template"> + <field name="name">Users: Company Request Tempo Review</field> + <field name="model_id" ref="indoteknik_custom.model_user_pengajuan_tempo"/> + <field name="subject">Permohonan Tempo Anda Sedang Ditinjau</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.login | 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.name_tempo.name},</b></td></tr> + + <tr><td style="padding-bottom: 16px;">Terima kasih atas kepercayaan Anda memilih indoteknik.com. Kami telah menerima permohonan pembayaran tempo Anda.</td></tr> + <tr><td style="padding-bottom: 16px;">Saat ini, tim kami sedang melakukan peninjauan terhadap permohonan Anda. Proses peninjauan ini membutuhkan waktu.</td></tr> + <tr> + <td style="padding-bottom: 16px; ">Kami akan informasikan kembali mengenai hasil peninjauan pembayaran tempo anda melalui email ini.</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_new_tempo_to_sales" model="mail.template"> + <field name="name">Users: Company New Tempo To Sales</field> + <field name="model_id" ref="indoteknik_custom.model_user_pengajuan_tempo"/> + <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">vita@indoteknik.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 Manager Tim Sales, Novita Mayasari.</b></td></tr> + + <tr><td style="padding-bottom: 16px;">Kami sampaikan informasi bahwa saat ini terdapat pengajuan Pembayaran Tempo dari ${object.name_tempo.name} melalui website Indoteknik.com.</td></tr> + + <tr><td style="padding-bottom: 16px;">Mohon dapat segera melakukan pengecekan dan evaluasi terhadap data perusahaan yang telah dilampirkan tersebut agar proses pengajuan dapat diproses lebih lanjut.</td></tr> + + + <tr><td style="padding-bottom: 16px;">Terima kasih atas perhatian dan kerjasamanya.</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_by_sales" model="mail.template"> + <field name="name">Users: Company Tempo Approved By Sales</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">widyariyanti97@gmail.com, stephan@indoteknik.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 Tim Finance Indoteknik,</b></td></tr> + + <tr><td style="padding-bottom: 16px;">Kami informasikan bahwa pengajuan tempo dari ${object.pengajuan_tempo_id.name_tempo.name} telah disetujui oleh Manager Divisi Sales.</td></tr> + + <tr><td style="padding-bottom: 16px;">Untuk kelancaran proses selanjutnya, kami mohon kesediaannya untuk melakukan pengecekan ulang terhadap pengajuan tempo tersebut.</td></tr> + + + <tr><td style="padding-bottom: 16px;">Terima kasih atas perhatian dan kerjasamanya.</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> + + <!-- Action to open form and tree views --> + <record id="action_user_pengajuan_tempo" model="ir.actions.act_window"> + <field name="name">Pengajuan Tempo</field> + <field name="res_model">user.pengajuan.tempo</field> + <field name="view_mode">tree,form</field> + </record> + + <!-- Menu item to access Pengajuan Tempo --> +<!-- <menuitem id="menu_user_pengajuan_tempo_root" name="Pengajuan Tempo" />--> +<!-- <menuitem id="menu_user_pengajuan_tempo" name="Pengajuan Tempo Records" parent="menu_user_pengajuan_tempo_root" action="action_user_pengajuan_tempo"/>--> +</odoo> diff --git a/indoteknik_custom/views/user_pengajuan_tempo_line.xml b/indoteknik_custom/views/user_pengajuan_tempo_line.xml new file mode 100644 index 00000000..60b510bc --- /dev/null +++ b/indoteknik_custom/views/user_pengajuan_tempo_line.xml @@ -0,0 +1,42 @@ +<odoo> + <record id="view_user_pengajuan_tempo_line_tree" model="ir.ui.view"> + <field name="name">user_pengajuan.tempo.line.tree</field> + <field name="model">user_pengajuan.tempo.line</field> + <field name="arch" type="xml"> + <tree string="Pengajuan Tempo Lines"> + <field name="name_supplier" string="Nama Supplier"/> + <field name="pic_name" string="PIC"/> + <field name="phone" string="Telepon"/> + <field name="tempo_duration" string="Durasi Tempo"/> + <field name="credit_limit" string="Credit Limit"/> + </tree> + </field> + </record> + + <record id="view_user_pengajuan_tempo_line_form" model="ir.ui.view"> + <field name="name">pengajuan.tempo.line.form</field> + <field name="model">pengajuan.tempo.line</field> + <field name="arch" type="xml"> + <form string="Pengajuan Tempo Line"> + <group> + <field name="name_supplier"/> + <field name="pic_name"/> + <field name="phone"/> + <field name="tempo_duration"/> + <field name="credit_limit"/> + </group> + </form> + </field> + </record> + + <!-- Action to open the list view --> + <record id="action_user_pengajuan_tempo_line" model="ir.actions.act_window"> + <field name="name">Pengajuan Tempo Lines</field> + <field name="res_model">pengajuan.tempo.line</field> + <field name="view_mode">tree,form</field> + </record> + + <!-- Add a menu item to access the list view --> + <menuitem id="menu_user_pengajuan_tempo_line_root" name="Pengajuan Tempo" /> + <menuitem id="menu_user_pengajuan_tempo_line" name="Pengajuan Tempo Lines" parent="menu_user_pengajuan_tempo_line_root" action="action_user_pengajuan_tempo_line"/> +</odoo> diff --git a/indoteknik_custom/views/user_pengajuan_tempo_request.xml b/indoteknik_custom/views/user_pengajuan_tempo_request.xml new file mode 100644 index 00000000..bb8262c9 --- /dev/null +++ b/indoteknik_custom/views/user_pengajuan_tempo_request.xml @@ -0,0 +1,416 @@ +<?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-success="state_tempo == 'approval_director'" decoration-danger="state_tempo == 'reject'" 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" + groups="purchase.group_purchase_manager" + 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="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="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_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="res_partner_menu_user" + sequence="3" + action="action_user_pengajuan_tempo_request" + /> +</odoo>
\ No newline at end of file diff --git a/indoteknik_custom/views/website_telegram.xml b/indoteknik_custom/views/website_telegram.xml new file mode 100644 index 00000000..d8590fc0 --- /dev/null +++ b/indoteknik_custom/views/website_telegram.xml @@ -0,0 +1,59 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<odoo> + <data> + <record id="website_telegram_action" model="ir.actions.act_window"> + <field name="name">Channel Telegram</field> + <field name="res_model">website.telegram</field> + <field name="view_mode">tree,form</field> + </record> + + <record id="website_telegram_tree" model="ir.ui.view"> + <field name="name">website.telegram.tree</field> + <field name="model">website.telegram</field> + <field name="arch" type="xml"> + <tree string="Channel List"> + <field name="tittle"/> + <field name="about"/> + <field name="user_id"/> + <button name="test_send" type="object" icon="fa-paper-plane" string="Send Test"/> +<!-- <button name="create_channel" type="object" icon="fa-paper-plane" string="Create Channel"/>--> +<!-- <button name="receive_messages" type="object" icon="fa-paper-plane" string="GET Test"/>--> + </tree> + </field> + </record> + + <record id="website_telegram_form" model="ir.ui.view"> + <field name="name">website.telegram.form</field> + <field name="model">website.telegram</field> + <field name="arch" type="xml"> + <form create="0"> + <sheet> + <group> + <group> + <field name="tittle"/> + <field name="about"/> + <field name="user_id" widget="many2many_tags"/> + </group> + </group> + </sheet> + </form> + </field> + </record> + + <record id="ir_actions_server_website_telegram_sync_to_solr" model="ir.actions.server"> + <field name="name">Sync to solr</field> + <field name="model_id" ref="indoteknik_custom.model_website_telegram"/> + <field name="binding_model_id" ref="indoteknik_custom.model_website_telegram"/> + <field name="state">code</field> + <field name="code">model.action_sync_to_solr()</field> + </record> + + <menuitem + id="website_telegram" + name="Channel Telegram" + parent="website_sale.menu_orders" + sequence="1" + action="website_telegram_action" + /> + </data> +</odoo> |
