summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-01-10 16:54:57 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-01-10 16:54:57 +0700
commite1a19093f74222251280bf598a6256d6766dc4a2 (patch)
tree30bd46d13c69388f72fbedb9e3399af3819c5032 /indoteknik_custom/views
parentb12be84e1f8f4b0082a4c77e25b3dc68434b1ebc (diff)
add reklas for uang muka penjualan
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/account_move.xml4
-rw-r--r--indoteknik_custom/views/invoice_reklas.xml31
2 files changed, 35 insertions, 0 deletions
diff --git a/indoteknik_custom/views/account_move.xml b/indoteknik_custom/views/account_move.xml
index b3e9fb8c..c315bb1c 100644
--- a/indoteknik_custom/views/account_move.xml
+++ b/indoteknik_custom/views/account_move.xml
@@ -6,6 +6,10 @@
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">
+ <button name="action_register_payment" position="after">
+ <button name="indoteknik_custom.action_view_invoice_reklas" string="Reklas"
+ type="action" class="btn-primary" attrs="{'invisible': [('state', '!=', 'posted')]}"/>
+ </button>
<field name="invoice_user_id" position="after">
<field name="date_kirim_tukar_faktur"/>
<field name="shipper_faktur_id"/>
diff --git a/indoteknik_custom/views/invoice_reklas.xml b/indoteknik_custom/views/invoice_reklas.xml
new file mode 100644
index 00000000..126ba71e
--- /dev/null
+++ b/indoteknik_custom/views/invoice_reklas.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <record id="view_invoice_reklas" model="ir.ui.view">
+ <field name="name">Invoice Reklas</field>
+ <field name="model">invoice.reklas</field>
+ <field name="arch" type="xml">
+ <form string="Invoice Sales Order">
+ <p class="oe_grey">
+ Invoices will be created in draft so that you can review
+ them before validation.
+ </p>
+ <group>
+ <field name="reklas_id"/>
+ <field name="pay_amt"/>
+ </group>
+ <footer>
+ <button name="create_reklas" id="create_reklas" string="Create Reklas" type="object" required="1"/>
+ </footer>
+ </form>
+ </field>
+ </record>
+
+ <record id="action_view_invoice_reklas" model="ir.actions.act_window">
+ <field name="name">Create Reklas</field>
+ <field name="type">ir.actions.act_window</field>
+ <field name="res_model">invoice.reklas</field>
+ <field name="view_mode">form</field>
+ <field name="target">new</field>
+ </record>
+
+</odoo>