summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authortrisusilo48 <tri.susilo@altama.co.id>2025-01-14 09:31:44 +0700
committertrisusilo48 <tri.susilo@altama.co.id>2025-01-14 09:31:44 +0700
commit183cd9e68ea05e31c63000aeb992eb618edb02b5 (patch)
tree45d710db372c2a0eba437a0137cbb74d9935a7f2 /indoteknik_custom/views
parent63878bd84a6eb9094e702963d7c78fcd8dfa1808 (diff)
parent6dda865a1b3262ce78ed2db024fd03efb091d6a6 (diff)
Merge branch 'odoo-production' into feature/integrasi_biteship
# Conflicts: # indoteknik_custom/__manifest__.py # indoteknik_custom/models/__init__.py # indoteknik_custom/security/ir.model.access.csv
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/account_move.xml8
-rw-r--r--indoteknik_custom/views/coretax_faktur.xml49
-rwxr-xr-xindoteknik_custom/views/product_template.xml6
-rwxr-xr-xindoteknik_custom/views/purchase_order.xml1
-rw-r--r--indoteknik_custom/views/res_partner.xml105
-rw-r--r--indoteknik_custom/views/res_users.xml2
-rwxr-xr-xindoteknik_custom/views/sale_order.xml8
-rw-r--r--indoteknik_custom/views/stock_picking.xml40
-rw-r--r--indoteknik_custom/views/user_company_request.xml18
-rw-r--r--indoteknik_custom/views/user_pengajuan_tempo.xml344
-rw-r--r--indoteknik_custom/views/user_pengajuan_tempo_line.xml42
-rw-r--r--indoteknik_custom/views/user_pengajuan_tempo_request.xml416
12 files changed, 1030 insertions, 9 deletions
diff --git a/indoteknik_custom/views/account_move.xml b/indoteknik_custom/views/account_move.xml
index 2863af57..4cc35b6d 100644
--- a/indoteknik_custom/views/account_move.xml
+++ b/indoteknik_custom/views/account_move.xml
@@ -163,5 +163,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/product_template.xml b/indoteknik_custom/views/product_template.xml
index b6599137..af21984a 100755
--- a/indoteknik_custom/views/product_template.xml
+++ b/indoteknik_custom/views/product_template.xml
@@ -20,6 +20,7 @@
<field name="unpublished" />
<field name="desc_update_solr" readonly="1" />
<field name="last_update_solr" readonly="1" />
+ <!-- <field name="qr_code" widget="image" invisible="1"/> -->
</field>
<field name="public_categ_ids" position="attributes">
<attribute name="required">0</attribute>
@@ -29,6 +30,10 @@
<field name="merchandise_ok"/>
<label for="merchandise_ok"/>
</div>
+ <div>
+ <field name="print_barcode"/>
+ <label for="print_barcode"/>
+ </div>
</div>
<field name="public_categ_ids" position="attributes">
<attribute name="options">{'no_create': True}</attribute>
@@ -58,6 +63,7 @@
<field name="arch" type="xml">
<field name="last_update_solr" position="after">
<field name="clean_website_description" />
+ <field name="qr_code_variant" widget="image" readonly="True"/>
</field>
</field>
</record>
diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml
index 0e6b6792..d22c3b5c 100755
--- a/indoteknik_custom/views/purchase_order.xml
+++ b/indoteknik_custom/views/purchase_order.xml
@@ -41,6 +41,7 @@
</field>
<field name="approval_status" position="after">
<field name="revisi_po"/>
+ <field name="not_update_purchasepricelist"/>
</field>
<field name="incoterm_id" position="after">
<field name="amount_total_without_service"/>
diff --git a/indoteknik_custom/views/res_partner.xml b/indoteknik_custom/views/res_partner.xml
index 1b164161..7e759e31 100644
--- a/indoteknik_custom/views/res_partner.xml
+++ b/indoteknik_custom/views/res_partner.xml
@@ -75,11 +75,114 @@
<field name="site_id" attrs="{'readonly': [('parent_id', '=', False)]}" domain="[('partner_id', '=', main_parent_id)]" context="{'default_partner_id': active_id}" />
</xpath>
<xpath expr="//field[@name='property_payment_term_id']" position="attributes">
- <attribute name="readonly">1</attribute>
+ <attribute name="readonly">0</attribute>
</xpath>
<xpath expr="//field[@name='property_supplier_payment_term_id']" position="attributes">
<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>
</field>
</record>
</data>
diff --git a/indoteknik_custom/views/res_users.xml b/indoteknik_custom/views/res_users.xml
index 39b9d43e..d7a6b2dd 100644
--- a/indoteknik_custom/views/res_users.xml
+++ b/indoteknik_custom/views/res_users.xml
@@ -254,5 +254,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..3539dbf3 100755
--- a/indoteknik_custom/views/sale_order.xml
+++ b/indoteknik_custom/views/sale_order.xml
@@ -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 562be8d9..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>
@@ -120,6 +130,8 @@
</field>
<field name="product_uom" position="after">
<field name="sale_id" attrs="{'readonly': 1}" optional="hide"/>
+ <field name="print_barcode" optional="hide"/>
+ <field name="qr_code_variant" widget="image" optional="hide"/>
</field>
<page name="note" position="after">
<page string="E-Faktur" name="efaktur" attrs="{'invisible': [['is_internal_use', '=', False]]}">
@@ -148,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"/>
@@ -166,13 +178,39 @@
<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">
+ <field name="check_product_lines"/>
+ </page> -->
</page>
</field>
</record>
+ <!-- <record id="check_product_tree" model="ir.ui.view">
+ <field name="name">check.product.tree</field>
+ <field name="model">check.product</field>
+ <field name="arch" type="xml">
+ <tree editable="bottom" decoration-warning="status == 'Pending'" decoration-success="status == 'Done'">
+ <field name="product_id"/>
+ <field name="quantity"/>
+ <field name="status"/>
+ </tree>
+ </field>
+ </record> -->
+
<record id="view_stock_move_line_detailed_operation_tree_inherit" model="ir.ui.view">
<field name="name">stock.move.line.operations.tree.inherit</field>
<field name="model">stock.move.line</field>
diff --git a/indoteknik_custom/views/user_company_request.xml b/indoteknik_custom/views/user_company_request.xml
index 1c80e923..6d5642e6 100644
--- a/indoteknik_custom/views/user_company_request.xml
+++ b/indoteknik_custom/views/user_company_request.xml
@@ -54,12 +54,16 @@
<field name="res_model">user.company.request</field>
<field name="view_mode">tree,form</field>
</record>
+ <menuitem id="res_partner_menu_user"
+ name="User Request"
+ parent="contacts.menu_contacts"
+ groups="base.group_system"
+ sequence="3"/>
- <menuitem
- id="menu_user_company_request"
- name="User Company Request"
- parent="contacts.menu_contacts"
- sequence="3"
- action="action_user_company_request"
- />
+<menuitem id="menu_user_company_request"
+ name="User Company Request"
+ parent="res_partner_menu_user"
+ 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..f9e747b3
--- /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" &lt;noreply@indoteknik.com&gt;</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" &lt;noreply@indoteknik.com&gt;</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" &lt;noreply@indoteknik.com&gt;</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" &lt;noreply@indoteknik.com&gt;</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 &amp; 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" &lt;noreply@indoteknik.com&gt;</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 &amp; 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" &lt;noreply@indoteknik.com&gt;</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 &amp; 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