summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/account_move.xml2
-rw-r--r--indoteknik_custom/views/account_move_views.xml6
-rw-r--r--indoteknik_custom/views/approval_payment_term.xml3
-rw-r--r--indoteknik_custom/views/mail_template_invoice_reminder.xml22
-rwxr-xr-xindoteknik_custom/views/purchase_order.xml20
-rw-r--r--indoteknik_custom/views/res_partner.xml3
-rw-r--r--indoteknik_custom/views/tukar_guling.xml10
-rw-r--r--indoteknik_custom/views/tukar_guling_po.xml12
-rw-r--r--indoteknik_custom/views/update_date_planned_po_wizard_view.xml25
9 files changed, 87 insertions, 16 deletions
diff --git a/indoteknik_custom/views/account_move.xml b/indoteknik_custom/views/account_move.xml
index ae944a4a..667a6b3e 100644
--- a/indoteknik_custom/views/account_move.xml
+++ b/indoteknik_custom/views/account_move.xml
@@ -29,6 +29,8 @@
</field>
<field name="payment_reference" position="after">
<field name="date_completed" readonly="1" attrs="{'invisible': [('move_type', '!=', 'out_invoice')]}"/>
+ <field name="payment_date" readonly="1" attrs="{'invisible': [('move_type', '!=', 'out_invoice'), ('payment_date', '=', False)]}"/>
+ <field name="partial_payment" readonly="1" attrs="{'invisible': [('move_type', '!=', 'out_invoice'), ('payment_state', '!=', 'partial')]}"/>
<field name="reklas_id" attrs="{'invisible': [('move_type', '!=', 'out_invoice')]}"/>
</field>
<field name="invoice_date" position="after">
diff --git a/indoteknik_custom/views/account_move_views.xml b/indoteknik_custom/views/account_move_views.xml
index da25636e..0fd7c9cd 100644
--- a/indoteknik_custom/views/account_move_views.xml
+++ b/indoteknik_custom/views/account_move_views.xml
@@ -47,15 +47,20 @@
<button name="approve_new_due"
string="Approve"
type="object"
+ attrs="{'readonly': [('approval_status', 'in', ('approved'))]}"
/>
<button name="due_extension_approval"
string="Ask Approval"
type="object"
+ attrs="{'readonly': [('approval_status', 'in', ('approved'))]}"
/>
<button name="due_extension_cancel"
string="Cancel"
type="object"
+ attrs="{'readonly': [('approval_status', 'in', ('approved'))]}"
/>
+ <field name="approval_status" widget="statusbar"
+ statusbar_visible="pengajuan,approved"/>
</header>
<sheet>
<group>
@@ -67,7 +72,6 @@
<group>
<field name="is_approve" readonly="1"/>
<field name="counter" readonly="1"/>
- <field name="approval_status" readonly="1"/>
<field name="approve_by" readonly="1"/>
<field name="date_approve" readonly="1"/>
</group>
diff --git a/indoteknik_custom/views/approval_payment_term.xml b/indoteknik_custom/views/approval_payment_term.xml
index cc9db914..f7c24737 100644
--- a/indoteknik_custom/views/approval_payment_term.xml
+++ b/indoteknik_custom/views/approval_payment_term.xml
@@ -59,7 +59,8 @@
</group>
<group>
<field name="reason"/>
- <field name="reason_reject" attrs="{'invisible': [('state', '!=', 'rejected')]}"/>
+ <field name="reason_reject" invisible="1"/>
+ <field name="reject_reason" attrs="{'invisible': [('state', '!=', 'rejected')]}"/>
<field name="approve_date" readonly="1"/>
<field name="approve_sales_manager" readonly="1"/>
<field name="approve_finance" readonly="1"/>
diff --git a/indoteknik_custom/views/mail_template_invoice_reminder.xml b/indoteknik_custom/views/mail_template_invoice_reminder.xml
index 21055eb0..8450be28 100644
--- a/indoteknik_custom/views/mail_template_invoice_reminder.xml
+++ b/indoteknik_custom/views/mail_template_invoice_reminder.xml
@@ -6,29 +6,32 @@
<field name="model_id" ref="account.model_account_move"/>
<field name="subject">Reminder Invoice Due - ${object.name}</field>
<field name="email_from">finance@indoteknik.co.id</field>
- <field name="email_to">andrifebriyadiputra@gmail.com</field>
+ <field name="email_to"></field>
<field name="body_html" type="html">
<div>
<p><b>Dear ${object.name},</b></p>
- <p>Berikut adalah daftar invoice Anda yang mendekati atau telah jatuh tempo:</p>
+ <p>${days_to_due_message}</p>
- <table border="1" cellpadding="4" cellspacing="0" style="border-collapse: collapse; width: 100%; font-size: 12px">
+ <table border="1" cellpadding="4" cellspacing="0" style="border-collapse: collapse; font-size: 12px">
<thead>
<tr style="background-color: #f2f2f2;" align="left">
+ <th>Customer</th>
+ <th>No. PO</th>
<th>Invoice Number</th>
- <th>Tanggal Invoice</th>
- <th>Jatuh Tempo</th>
- <th>Sisa Hari</th>
- <th>Total</th>
- <th>Referensi</th>
+ <th>Invoice Date</th>
+ <th>Due Date</th>
+ <th>Amount</th>
+ <th>Term</th>
+ <th>Days To Due</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
- <p>Mohon bantuan dan kerjasamanya agar tetap bisa bekerjasama dengan baik</p>
+ <p>${closing_message}</p>
+ <br/>
<p>Terima Kasih.</p>
<br/>
<br/>
@@ -42,6 +45,7 @@
<a href="https://wa.me/6285716970374" target="_blank">+62-857-1697-0374</a> |
<a href="mailto:finance@indoteknik.co.id">finance@indoteknik.co.id</a>
</b></p>
+ <p><i>Email ini dikirim secara otomatis. Abaikan jika pembayaran telah dilakukan.</i></p>
</div>
</field>
diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml
index fedcb4f9..15cdc788 100755
--- a/indoteknik_custom/views/purchase_order.xml
+++ b/indoteknik_custom/views/purchase_order.xml
@@ -428,4 +428,24 @@
<field name="code">action = records.open_form_multi_cancel()</field>
</record>
</data>
+ <data>
+ <record id="action_update_receipt_date_po" model="ir.actions.server">
+ <field name="name">Update Receipt Date</field>
+ <field name="model_id" ref="purchase.model_purchase_order"/>
+ <field name="binding_model_id" ref="purchase.model_purchase_order"/>
+ <field name="state">code</field>
+ <field name="binding_view_types">list</field>
+ <field name="code">
+ action = {
+ 'type': 'ir.actions.act_window',
+ 'res_model': 'purchase.order.update.date.wizard',
+ 'view_mode': 'form',
+ 'target': 'new',
+ 'context': {
+ 'active_ids': env.context.get('active_ids', []),
+ },
+ }
+ </field>
+ </record>
+ </data>
</odoo> \ No newline at end of file
diff --git a/indoteknik_custom/views/res_partner.xml b/indoteknik_custom/views/res_partner.xml
index 38cd2756..b081f6f2 100644
--- a/indoteknik_custom/views/res_partner.xml
+++ b/indoteknik_custom/views/res_partner.xml
@@ -102,6 +102,9 @@
/>
</div>
</xpath>
+ <xpath expr="//field[@name='child_ids']/form//field[@name='mobile']" position="after">
+ <field name="reminder_invoices"/>
+ </xpath>
<xpath expr="//field[@name='property_payment_term_id']" position="attributes">
<attribute name="readonly">0</attribute>
</xpath>
diff --git a/indoteknik_custom/views/tukar_guling.xml b/indoteknik_custom/views/tukar_guling.xml
index c23995d3..9dd31905 100644
--- a/indoteknik_custom/views/tukar_guling.xml
+++ b/indoteknik_custom/views/tukar_guling.xml
@@ -21,7 +21,7 @@
<field name="name">pengajuan.tukar.guling.tree</field>
<field name="model">tukar.guling</field>
<field name="arch" type="xml">
- <tree create="1" delete="1" default_order="create_date desc">
+ <tree create="0" delete="1" default_order="create_date desc">
<field name="name"/>
<field name="partner_id" string="Customer"/>
<field name="origin" string="SO Number"/>
@@ -83,15 +83,21 @@
<field name="return_type" attrs="{'readonly': [('state', 'not in', 'draft')]}"/>
<field name="operations"
attrs="{'readonly': [('state', 'not in', 'draft')]}"/>
- <field name="origin" readonly="1"/>
+<!-- <field name="origin" readonly="1"/>-->
+ <field name="origin_so" readonly="1"/>
+ <field name="is_has_invoice" readonly="1"/>
</group>
<group>
+ <field name="val_inv_opt" attrs="{'invisible': [('is_has_invoice', '=', False)]}"/>
<field name="ba_num" string="Nomor BA"/>
<field name="notes"/>
<field name="date_sales" readonly="1"/>
<field name="date_finance" readonly="1"/>
<field name="date_logistic" readonly="1"/>
</group>
+ <group>
+ <field name="invoice_id" readonly="1" attrs="{'invisible': [('is_has_invoice', '=', False)]}"/>
+ </group>
</group>
<notebook>
<page string="Product Lines" name="product_lines">
diff --git a/indoteknik_custom/views/tukar_guling_po.xml b/indoteknik_custom/views/tukar_guling_po.xml
index accf7dbc..1c6a86ea 100644
--- a/indoteknik_custom/views/tukar_guling_po.xml
+++ b/indoteknik_custom/views/tukar_guling_po.xml
@@ -24,7 +24,7 @@
<tree create="1" delete="1" default_order="create_date desc">
<field name="name"/>
<field name="vendor_id" string="Customer"/>
- <field name="origin" string="SO Number"/>
+ <field name="origin" string="PO Number"/>
<field name="operations" string="Operations"/>
<field name="return_type" string="Return Type"/>
<field name="state" widget="badge"
@@ -89,16 +89,22 @@
attrs="{
'required': [('return_type', 'in', ['revisi_po', 'tukar_guling'])]
}"/>
- <field name="origin" readonly="1"/>
- <!-- <field name="origin_so" readonly="1"/>-->
+<!-- <field name="origin" readonly="1"/>-->
+ <field name="origin_po" readonly="1"/>
+ <field name="is_has_bill" readonly="1"/>
+<!-- <field name="bill_id" readonly="1" />-->
</group>
<group>
+ <field name="val_bil_opt" attrs="{'invisible': [('is_has_bill', '=', False)]}"/>
<field name="ba_num" string="Nomor BA"/>
<field name="notes"/>
<field name="date_purchase" readonly="1"/>
<field name="date_finance" readonly="1"/>
<field name="date_logistic" readonly="1"/>
</group>
+ <group>
+ <field name="bill_id" readonly="1" attrs="{'invisible': [('is_has_bill', '=', False)]}"/>
+ </group>
</group>
<!-- Product Lines -->
<notebook>
diff --git a/indoteknik_custom/views/update_date_planned_po_wizard_view.xml b/indoteknik_custom/views/update_date_planned_po_wizard_view.xml
new file mode 100644
index 00000000..6b3ab991
--- /dev/null
+++ b/indoteknik_custom/views/update_date_planned_po_wizard_view.xml
@@ -0,0 +1,25 @@
+<odoo>
+ <record id="view_update_date_planned_po_wizard_form" model="ir.ui.view">
+ <field name="name">purchase.order.update.date.wizard.form</field>
+ <field name="model">purchase.order.update.date.wizard</field>
+ <field name="arch" type="xml">
+ <form string="Update Receipt Date">
+ <group>
+ <field name="date_planned"/>
+ </group>
+ <footer>
+ <button string="Apply" type="object" name="action_update_date" class="btn-primary"/>
+ <button string="Cancel" special="cancel"/>
+ </footer>
+ </form>
+ </field>
+ </record>
+
+ <record id="action_update_date_planned_po_wizard" model="ir.actions.act_window">
+ <field name="name">Update Receipt Date</field>
+ <field name="res_model">purchase.order.update.date.wizard</field>
+ <field name="view_mode">form</field>
+ <field name="target">new</field>
+ </record>
+ </odoo>
+ \ No newline at end of file