summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-06-27 15:29:16 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-06-27 15:29:16 +0700
commite33f2d321ee4db6a6e6a86e35243100b9f107f22 (patch)
tree54da1eeaced0bf1894be9fa4fa00a5f16c76388c /indoteknik_custom/views
parent98fd3104060a92991569a206aabf6c7c20b190e3 (diff)
logbook bill & send email efaktur document
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/ir_sequence.xml10
-rw-r--r--indoteknik_custom/views/logbook_bill.xml55
-rw-r--r--indoteknik_custom/views/mail_template_efaktur.xml26
-rwxr-xr-xindoteknik_custom/views/purchase_order.xml3
-rw-r--r--indoteknik_custom/views/report_logbook_bill.xml97
5 files changed, 191 insertions, 0 deletions
diff --git a/indoteknik_custom/views/ir_sequence.xml b/indoteknik_custom/views/ir_sequence.xml
index af07ba38..40ce135c 100644
--- a/indoteknik_custom/views/ir_sequence.xml
+++ b/indoteknik_custom/views/ir_sequence.xml
@@ -20,6 +20,16 @@
<field name="number_next">1</field>
<field name="number_increment">1</field>
</record>
+
+ <record id="sequence_logbook_bill" model="ir.sequence">
+ <field name="name">Logbook Bill</field>
+ <field name="code">report.logbook.bill</field>
+ <field name="active">TRUE</field>
+ <field name="prefix">LSB/%(year)s/</field>
+ <field name="padding">5</field>
+ <field name="number_next">1</field>
+ <field name="number_increment">1</field>
+ </record>
<record id="sequence_stock_picking_code" model="ir.sequence">
<field name="name">Stock Picking Code</field>
diff --git a/indoteknik_custom/views/logbook_bill.xml b/indoteknik_custom/views/logbook_bill.xml
new file mode 100644
index 00000000..25f1d704
--- /dev/null
+++ b/indoteknik_custom/views/logbook_bill.xml
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<odoo>
+ <record id="view_logbook_bill_form" model="ir.ui.view">
+ <field name="name">Logbook Bill</field>
+ <field name="model">logbook.bill</field>
+ <field name="arch" type="xml">
+ <form>
+ <sheet>
+ <field name="name" invisible="1"/>
+ <field
+ name="logbook_bill_line"
+ mode="tree"
+ >
+ <tree editable="bottom">
+ <control>
+ <create name="add_logbook_bill_line_control" string="Add a logbook"/>
+ </control>
+ <field name="name" required="1"/>
+ <field name="partner_id" readonly="1"/>
+ <field name="purchase_id" readonly="1"/>
+ <field name="invoice"/>
+ <field name="faktur_pajak"/>
+ <field name="surat_jalan"/>
+ <field name="proforma_invoice"/>
+ <field name="date_approve" readonly="1"/>
+ <field name="note"/>
+ <field name="note_finance"/>
+ </tree>
+ </field>
+ </sheet>
+ <footer>
+ <button name="create_logbook_bill" string="Submit" type="object" default_focus="1" class="oe_highlight"/>
+ <button string="Cancel" class="btn btn-secondary" special="cancel" />
+ </footer>
+ </form>
+ </field>
+ </record>
+
+ <record id="action_logbook_bill" model="ir.actions.act_window">
+ <field name="name">Logbook Bill</field>
+ <field name="res_model">logbook.bill</field>
+ <field name="type">ir.actions.act_window</field>
+ <field name="view_mode">form</field>
+ <field name="view_id" ref="view_logbook_bill_form"/>
+ <field name="target">new</field>
+ </record>
+
+ <menuitem
+ action="action_logbook_bill"
+ id="logbook_bill"
+ parent="stock.menu_stock_warehouse_mgmt"
+ name="Logbook Bill"
+ sequence="1"
+ />
+</odoo> \ No newline at end of file
diff --git a/indoteknik_custom/views/mail_template_efaktur.xml b/indoteknik_custom/views/mail_template_efaktur.xml
new file mode 100644
index 00000000..ca0ea427
--- /dev/null
+++ b/indoteknik_custom/views/mail_template_efaktur.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" ?>
+<odoo>
+ <data>
+ <record id="mail_template_efaktur_document" model="mail.template">
+ <field name="name">Invoice: Send mail efaktur document</field>
+ <field name="model_id" ref="model_account_move" />
+ <field name="subject">Your Invoice ${object.name}</field>
+ <field name="email_from">sales@indoteknik.com</field>
+ <field name="email_to">${object.partner_id.email|safe}</field>
+ <field name="body_html" type="html">
+ <p>Dengan Hormat Bpk/Ibu ${object.partner_id.name},</p>
+ <p>Terlampir Faktur Pajak atas Invoice ${object.name}.</p>
+ <p><strong>Keterangan:</strong></p>
+ <p>Mohon dicek langsung faktur pajak terlampir, terutama informasi nomor NPWP dan alamat NPWP serta nama pembelian barang. Jika ada yang tidak sesuai, mohon segera menginformasikan kepada kami paling lambat 1 (satu) minggu dari tanggal email ini. Revisi faktur pajak tidak dapat kami proses apabila sudah melewati 1 (satu) minggu. Harap maklum.</p>
+ <p>Mohon balas email ini jika sudah menerima, terima kasih.</p>
+ <p>Best Regards,<br />
+ PT. Indoteknik Dotcom Gemilang<br />
+ Jl. Bandengan Utara 85A No. 8-9 Penjaringan.<br />
+ Kec. Penjaringan, Jakarta Utara - DKI Jakarta<br />
+ Telp: 021-2933 8828 / 29 | GSM: 0813 9000 7430 / 31<br />
+ Email: sales@indoteknik.com | Whatsapp: 0812 8080 622</p>
+ </field>
+ <field name="auto_delete" eval="True" />
+ </record>
+ </data>
+</odoo>
diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml
index 08ff7e84..2ae96d7e 100755
--- a/indoteknik_custom/views/purchase_order.xml
+++ b/indoteknik_custom/views/purchase_order.xml
@@ -92,6 +92,7 @@
<field name="status_paid_cbd"/>
<field name="from_apo"/>
<field name="approval_edit_line"/>
+ <field name="logbook_bill_id"/>
</field>
<field name="order_line" position="attributes">
@@ -136,6 +137,7 @@
<field name="responsible_ids" widget="many2many_tags" optional="hide"/>
<field name="matches_so" widget="many2many_tags" optional="hide"/>
<field name="is_create_uangmuka" optional="hide"/>
+ <field name="logbook_bill_id" optional="hide"/>
</field>
</field>
</record>
@@ -154,6 +156,7 @@
<field name="is_create_uangmuka" optional="hide"/>
<field name="responsible_ids" widget="many2many_tags" optional="hide"/>
<field name="matches_so" widget="many2many_tags" optional="hide"/>
+ <field name="logbook_bill_id" optional="hide"/>
</field>
</field>
</record>
diff --git a/indoteknik_custom/views/report_logbook_bill.xml b/indoteknik_custom/views/report_logbook_bill.xml
new file mode 100644
index 00000000..fc461400
--- /dev/null
+++ b/indoteknik_custom/views/report_logbook_bill.xml
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<odoo>
+ <record id="report_logbook_bill_tree" model="ir.ui.view">
+ <field name="name">report.logbook.bill.tree</field>
+ <field name="model">report.logbook.bill</field>
+ <field name="arch" type="xml">
+ <tree create="0" delete="0">
+ <field name="name"/>
+ <field name="approve_by"/>
+ <field name="created_by"/>
+ <field name="date"/>
+ <field name="date_approve"/>
+ <field name="approve_by_finance"/>
+ <field name="state"/>
+ <field name="state_pengajuan"/>
+ </tree>
+ </field>
+ </record>
+
+ <record id="report_logbook_bill_line_tree" model="ir.ui.view">
+ <field name="name">report.logbook.bill.line.tree</field>
+ <field name="model">report.logbook.bill.line</field>
+ <field name="arch" type="xml">
+ <tree editable="bottom">
+ <field name="name"/>
+ <field name="partner_id"/>
+ <field name="purchase_id"/>
+ <field name="invoice"/>
+ <field name="faktur_pajak"/>
+ <field name="surat_jalan"/>
+ <field name="proforma_invoice"/>
+ <field name="date_approve"/>
+ <field name="grand_total"/>
+ <field name="not_exist"/>
+ <field name="note"/>
+ <field name="note_finance"/>
+ </tree>
+ </field>
+ </record>
+
+ <record id="report_logbook_bill_form" model="ir.ui.view">
+ <field name="name">report.logbook.bill.form</field>
+ <field name="model">report.logbook.bill</field>
+ <field name="arch" type="xml">
+ <form>
+ <header>
+ <button name="approve"
+ string="Validate"
+ type="object"
+ />
+ </header>
+ <sheet string="Report logbook Bill">
+ <div class="oe_button_box" name="button_box"/>
+ <group>
+ <group>
+ <field name="name" readonly="1"/>
+ <field name="date" readonly="1"/>
+ <field name="date_approve" readonly="1"/>
+ <field name="state_pengajuan" readonly="1"/>
+ <field name="pengajuan_by" readonly="1"/>
+ <field name="date_pengajuan" readonly="1"/>
+ </group>
+ <group>
+ <field name="approve_by_finance" readonly="1"/>
+ <field name="state" readonly="1"/>
+ <field name="created_by" readonly="1"/>
+ <field name="approve_by" readonly="1"/>
+ <field name="count_line" readonly="1"/>
+ </group>
+ </group>
+ <notebook>
+ <page string="Line">
+ <field name="report_logbook_bill_line"/>
+ </page>
+ </notebook>
+ </sheet>
+ <div class="oe_chatter">
+ <field name="message_follower_ids" widget="mail_followers"/>
+ <field name="message_ids" widget="mail_thread"/>
+ </div>
+ </form>
+ </field>
+ </record>
+
+ <record id="report_logbook_bill_action" model="ir.actions.act_window">
+ <field name="name">Report Logbook Bill</field>
+ <field name="type">ir.actions.act_window</field>
+ <field name="res_model">report.logbook.bill</field>
+ <field name="view_mode">tree,form</field>
+ </record>
+
+ <menuitem id="menu_report_logbook_bill"
+ name="Report Logbook Bill"
+ action="report_logbook_bill_action"
+ parent="account.menu_finance_reports"
+ sequence="200"/>
+</odoo> \ No newline at end of file