summaryrefslogtreecommitdiff
path: root/fixco_custom/views
diff options
context:
space:
mode:
Diffstat (limited to 'fixco_custom/views')
-rw-r--r--fixco_custom/views/account_move.xml9
-rw-r--r--fixco_custom/views/invoice_reklas.xml31
-rw-r--r--fixco_custom/views/purchase_order.xml15
-rwxr-xr-xfixco_custom/views/sale_order.xml7
-rwxr-xr-xfixco_custom/views/stock_picking.xml1
-rw-r--r--fixco_custom/views/uangmuka_pembelian.xml33
-rw-r--r--fixco_custom/views/update_depreciation_move_wizard_view.xml35
7 files changed, 130 insertions, 1 deletions
diff --git a/fixco_custom/views/account_move.xml b/fixco_custom/views/account_move.xml
index daa5707..421dc49 100644
--- a/fixco_custom/views/account_move.xml
+++ b/fixco_custom/views/account_move.xml
@@ -6,6 +6,11 @@
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">
+
+ <button name="action_post" position="after">
+ <button name="fixco_custom.action_view_invoice_reklas" string="Reklas"
+ type="action" class="btn-primary" attrs="{'invisible': ['|', ('state', '!=', 'posted'), ('move_type', 'not in', ['out_invoice', 'in_invoice'])]}"/>
+ </button>
<button name="open_reconcile_view" position="after">
<button type="object" name="action_view_related_payment"
@@ -27,8 +32,10 @@
</field>
<field name="invoice_date" position="after">
- <field name="sale_id" readonly="1" attrs="{'invisible': [('move_type', '!=', 'out_invoice')]}"/>
+ <field name="sale_id" readonly="1" attrs="{'invisible': [('move_type', 'not in', ('out_invoice','entry'))]}"/>
+ <field name="purchase_order_id" readonly="1" attrs="{'invisible': [('move_type', 'not in', ('in_invoice','entry'))]}"/>
<field name="picking_id" readonly="1" attrs="{'invisible': [('move_type', '!=', 'out_invoice')]}"/>
+ <field name="bill_id" readonly="1" attrs="{'invisible': [('move_type', '!=', 'in_invoice')]}"/>
</field>
<!-- ✅ Add the new Many2many field after invoice_vendor_bill_id -->
diff --git a/fixco_custom/views/invoice_reklas.xml b/fixco_custom/views/invoice_reklas.xml
new file mode 100644
index 0000000..a29139a
--- /dev/null
+++ b/fixco_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">
+ Reklas Uang Muka Penjualan / Pembelian akan terbuat Draft, mohon dicek kembali
+ </p>
+ <group>
+ <field name="reklas_type"/>
+ <field name="reklas_id" options="{'no_create': True}"/>
+ <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>
diff --git a/fixco_custom/views/purchase_order.xml b/fixco_custom/views/purchase_order.xml
index de8c7bb..174929c 100644
--- a/fixco_custom/views/purchase_order.xml
+++ b/fixco_custom/views/purchase_order.xml
@@ -6,10 +6,25 @@
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.purchase_order_form"/>
<field name="arch" type="xml">
+ <xpath expr="//button[@name='action_view_invoice']" position="before">
+ <button type="object"
+ name="action_view_related_journals"
+ class="oe_stat_button"
+ icon="fa-book"
+ style="width: 200px;"
+ attrs="{'invisible': [('count_journals', '=', 0)]}">
+ <field name="count_journals" widget="statinfo" string="Journals"/>
+ </button>
+ </xpath>
+ <button id="draft_confirm" position="after">
+ <button name="fixco_custom.action_view_uangmuka_pembelian" string="UangMuka"
+ type="action" attrs="{'invisible': [('state', '!=', 'purchase')]}"/>
+ </button>
<field name="currency_id" position="after">
<field name="sale_order_id" readonly="1"/>
<field name="biaya_lain_lain"/>
<field name="source"/>
+ <field name="move_entry_id" readonly="1"/>
</field>
<field name="amount_untaxed" position="after">
<field name="amount_discount" class="oe_currency_line"/>
diff --git a/fixco_custom/views/sale_order.xml b/fixco_custom/views/sale_order.xml
index 0dfd9af..48e4a31 100755
--- a/fixco_custom/views/sale_order.xml
+++ b/fixco_custom/views/sale_order.xml
@@ -14,6 +14,13 @@
attrs="{'invisible': [('count_payment', '=', 0)]}" groups="base.group_user">
<field name="count_payment" widget="statinfo" string="Payments"/>
</button>
+ <button type="object"
+ name="action_view_related_journals"
+ class="oe_stat_button"
+ icon="fa-book"
+ attrs="{'invisible': [('count_journals', '=', 0)]}" groups="base.group_user">
+ <field name="count_journals" widget="statinfo" string="Journals"/>
+ </button>
</xpath>
<button id="action_confirm" position="after">
<button name="open_form_uangmuka_penjualan"
diff --git a/fixco_custom/views/stock_picking.xml b/fixco_custom/views/stock_picking.xml
index 073cd47..ac814fc 100755
--- a/fixco_custom/views/stock_picking.xml
+++ b/fixco_custom/views/stock_picking.xml
@@ -8,6 +8,7 @@
<field name="arch" type="xml">
<field name="partner_id" position="after">
<field name="provider_name" optional="hide"/>
+ <field name="is_printed" optional="hide"/>
</field>
</field>
</record>
diff --git a/fixco_custom/views/uangmuka_pembelian.xml b/fixco_custom/views/uangmuka_pembelian.xml
new file mode 100644
index 0000000..e1367b6
--- /dev/null
+++ b/fixco_custom/views/uangmuka_pembelian.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <record id="view_uangmuka_pembelian" model="ir.ui.view">
+ <field name="name">Uangmuka Pembelian</field>
+ <field name="model">uangmuka.pembelian</field>
+ <field name="arch" type="xml">
+ <form string="Invoice Sales Order">
+ <p class="oe_grey">
+ Pembuatan semi otomatis Uang Muka Pembelian, mohon dicek kembali
+ </p>
+ <group>
+ <field name="pay_amt"/>
+ <field name="ongkir_amt"/>
+ <field name="selisih_amt"/>
+ <field name="account_id" domain="[('name', 'ilike', 'In Transit')]"/>
+ <field name="total_amt" readonly="1"/>
+ </group>
+ <footer>
+ <button name="create_uangmukapembelian" id="create_uangmukapembelian" string="Create" type="object" required="1"/>
+ </footer>
+ </form>
+ </field>
+ </record>
+
+ <record id="action_view_uangmuka_pembelian" model="ir.actions.act_window">
+ <field name="name">Create Uang Muka Pembelian</field>
+ <field name="type">ir.actions.act_window</field>
+ <field name="res_model">uangmuka.pembelian</field>
+ <field name="view_mode">form</field>
+ <field name="target">new</field>
+ </record>
+
+</odoo>
diff --git a/fixco_custom/views/update_depreciation_move_wizard_view.xml b/fixco_custom/views/update_depreciation_move_wizard_view.xml
new file mode 100644
index 0000000..ff128a7
--- /dev/null
+++ b/fixco_custom/views/update_depreciation_move_wizard_view.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<odoo>
+ <record id="view_update_depreciation_move_wizard_form" model="ir.ui.view">
+ <field name="name">update.depreciation.move.wizard.form</field>
+ <field name="model">update.depreciation.move.wizard</field>
+ <field name="arch" type="xml">
+ <form string="Update Move Check">
+ <group>
+ <field name="target_date"/>
+ </group>
+ <footer>
+ <button string="Update" type="object" name="action_update_move_check" class="btn-primary"/>
+ <button string="Batal" special="cancel" class="btn-secondary"/>
+ </footer>
+ </form>
+ </field>
+ </record>
+
+ <record id="update_depreciation_move_wizard_action" model="ir.actions.act_window">
+ <field name="name">Update Depreciation Asset</field>
+ <field name="type">ir.actions.act_window</field>
+ <field name="res_model">update.depreciation.move.wizard</field>
+ <field name="view_mode">form</field>
+ <field name="target">new</field>
+ </record>
+
+ <menuitem
+ id="menu_update_depreciation_move_wizard"
+ name="Update Depreciation Asset"
+ parent="account.menu_finance_entries_management"
+ sequence="4"
+ action="update_depreciation_move_wizard_action"
+ />
+</odoo>
+ \ No newline at end of file