diff options
Diffstat (limited to 'indoteknik_custom/views')
17 files changed, 365 insertions, 6 deletions
diff --git a/indoteknik_custom/views/account_move.xml b/indoteknik_custom/views/account_move.xml index 7995b83b..97951b95 100644 --- a/indoteknik_custom/views/account_move.xml +++ b/indoteknik_custom/views/account_move.xml @@ -15,14 +15,23 @@ </field> <field name="payment_reference" position="after"> <field name="date_completed" readonly="1" attrs="{'invisible': [('move_type', '!=', 'out_invoice')]}"/> + <field name="reklas_id" attrs="{'invisible': [('move_type', '!=', 'out_invoice')]}"/> + </field> + <field name="invoice_date" position="after"> + <field name="sale_id" readonly="1" attrs="{'invisible': [('move_type', '!=', 'out_invoice')]}"/> + </field> + <field name="ref" position="after"> + <field name="sale_id" readonly="1" attrs="{'invisible': [('move_type', '!=', 'entry')]}"/> </field> <field name="efaktur_document" position="before"> <field name="no_faktur_pajak" attrs="{'invisible': [('move_type', '!=', 'in_invoice')]}"/> + <field name="date_efaktur_upload" readonly="1"/> </field> <field name="efaktur_document" position="attributes"> <attribute name="widget">pdf_viewer</attribute> </field> <field name="invoice_user_id" position="after"> + <field name="invoice_origin"/> <field name="date_kirim_tukar_faktur"/> <field name="shipper_faktur_id"/> <field name="resi_tukar_faktur"/> @@ -55,7 +64,9 @@ <attribute name="decoration-danger">invoice_day_to_due < 0</attribute> </field> <field name="invoice_date_due" position="after"> - <field name="invoice_day_to_due" attrs="{'invisible': [['payment_state', 'in', ('paid', 'in_payment', 'reversed')]]}"/> + <field name="new_due_date" optional="hide"/> + <field name="invoice_day_to_due" attrs="{'invisible': [['payment_state', 'in', ('paid', 'in_payment', 'reversed')]]}" optional="hide"/> + <field name="new_invoice_day_to_due" attrs="{'invisible': [['payment_state', 'in', ('paid', 'in_payment', 'reversed')]]}" optional="hide"/> <field name="mark_upload_efaktur" optional="hide" widget="badge" decoration-danger="mark_upload_efaktur == 'belum_upload'" decoration-success="mark_upload_efaktur == 'sudah_upload'" /> @@ -108,5 +119,13 @@ <field name="state">code</field> <field name="code">action = records.open_form_multi_update()</field> </record> + + <record id="account_move_multi_create_reklas_ir_actions_server" model="ir.actions.server"> + <field name="name">Create Reklas Penjualan</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.open_form_multi_create_reklas_penjualan()</field> + </record> </data> </odoo>
\ No newline at end of file diff --git a/indoteknik_custom/views/automatic_purchase.xml b/indoteknik_custom/views/automatic_purchase.xml index 244d1caa..8c381844 100644 --- a/indoteknik_custom/views/automatic_purchase.xml +++ b/indoteknik_custom/views/automatic_purchase.xml @@ -24,8 +24,10 @@ <tree editable="bottom"> <field name="brand_id"/> <field name="product_id"/> - <field name="qty_min" optional="hide"/> - <field name="qty_max" optional="hide"/> + <field name="taxes_id"/> + <field name="qty_purchase"/> + <field name="qty_min"/> + <field name="qty_max"/> <field name="qty_available"/> <field name="qty_purchase"/> <field name="partner_id"/> diff --git a/indoteknik_custom/views/invoice_reklas_penjualan.xml b/indoteknik_custom/views/invoice_reklas_penjualan.xml new file mode 100644 index 00000000..9c875cca --- /dev/null +++ b/indoteknik_custom/views/invoice_reklas_penjualan.xml @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <record id="view_invoice_reklas_penjualan" model="ir.ui.view"> + <field name="name">Invoice Reklas Penjualan</field> + <field name="model">invoice.reklas.penjualan</field> + <field name="arch" type="xml"> + <form> + <sheet> + <field name="name" invisible="1"/> + <field + name="invoice_reklas_line" + mode="tree" + > + <tree create="0" editable="bottom"> + <field name="name" readonly="1"/> + <field name="partner_id" readonly="1"/> + <field name="pay_amt" required="1"/> + <field name="reklas_id" required="1"/> + <field name="amount_untaxed_signed" readonly="1"/> + <field name="sale_id" readonly="1"/> + <field name="amount_total_signed" readonly="1"/> + </tree> + </field> + </sheet> + <footer> + <button name="create_reklas_penjualan" string="Create Reklas" type="object" default_focus="1" class="oe_highlight"/> + <button string="Cancel" class="btn btn-secondary" special="cancel" /> + </footer> + </form> + </field> + </record> + + <record id="action_view_invoice_reklas_penjualan" model="ir.actions.act_window"> + <field name="name">Create Reklas Penjualan</field> + <field name="type">ir.actions.act_window</field> + <field name="res_model">invoice.reklas.penjualan</field> + <field name="view_mode">form</field> + <field name="target">new</field> + </record> +</odoo> diff --git a/indoteknik_custom/views/logbook_sj.xml b/indoteknik_custom/views/logbook_sj.xml new file mode 100644 index 00000000..9eb9aa12 --- /dev/null +++ b/indoteknik_custom/views/logbook_sj.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="utf-8" ?> +<odoo> + <record id="view_logbook_sj_form" model="ir.ui.view"> + <field name="name">Logbook SJ</field> + <field name="model">logbook.sj</field> + <field name="arch" type="xml"> + <form> + <sheet> + <field name="name" invisible="1"/> + <field + name="logbook_sj_line" + mode="tree" + > + <tree editable="bottom"> + <control> + <create name="add_logbook_sj_line_control" string="Add a logbook"/> + </control> + <field name="name" required="1"/> + <field name="driver_id" readonly="1"/> + <field name="departure_date" readonly="1"/> + <field name="arrival_date" readonly="1"/> + <field name="carrier_id" readonly="1"/> + <field name="tracking_no" readonly="1"/> + <field name="partner_id" readonly="1"/> + </tree> + </field> + </sheet> + <footer> + <button name="create_logbook_sj" 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_sj" model="ir.actions.act_window"> + <field name="name">Logbook SJ</field> + <field name="res_model">logbook.sj</field> + <field name="type">ir.actions.act_window</field> + <field name="view_mode">form</field> + <field name="view_id" ref="view_logbook_sj_form"/> + <field name="target">new</field> + </record> + + <menuitem + action="action_logbook_sj" + id="logbook_sj" + parent="stock.menu_stock_warehouse_mgmt" + name="Logbook SJ" + sequence="1" + /> +</odoo>
\ No newline at end of file diff --git a/indoteknik_custom/views/po_multi_cancel.xml b/indoteknik_custom/views/po_multi_cancel.xml new file mode 100644 index 00000000..c17fc5a7 --- /dev/null +++ b/indoteknik_custom/views/po_multi_cancel.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<odoo> + <data> + <record id="view_po_multi_cancel_form" model="ir.ui.view"> + <field name="name">PO Multi Cancel</field> + <field name="model">po.multi.cancel</field> + <field name="arch" type="xml"> + <form> + <sheet> + <group> + <span>Apakah Anda Yakin Ingin Mengubah Status Menjadi Cancel?</span> + </group> + </sheet> + <footer> + <button name="save_multi_cancel_po" string="Update" type="object" default_focus="1" class="oe_highlight"/> + <button string="Cancel" class="btn btn-secondary" special="cancel" /> + </footer> + </form> + </field> + </record> + + <record id="action_po_multi_cancel" model="ir.actions.act_window"> + <field name="name">PO Multi Cancel</field> + <field name="res_model">po.multi.cancel</field> + <field name="type">ir.actions.act_window</field> + <field name="view_mode">form</field> + <field name="view_id" ref="view_po_multi_cancel_form"/> + <field name="target">new</field> + </record> + </data> +</odoo>
\ No newline at end of file diff --git a/indoteknik_custom/views/product_product.xml b/indoteknik_custom/views/product_product.xml index 8194f92c..c06cc5f1 100644 --- a/indoteknik_custom/views/product_product.xml +++ b/indoteknik_custom/views/product_product.xml @@ -10,6 +10,13 @@ <field name="outgoing_qty"/> <field name="incoming_qty"/> </field> + <field name="virtual_available" position="after"> + <field name="qty_onhand_bandengan" optional="hide"/> + <field name="qty_incoming_bandengan" optional="hide"/> + <field name="qty_outgoing_bandengan" optional="hide"/> + <field name="qty_available_bandengan" optional="hide"/> + <field name="qty_free_bandengan" optional="hide"/> + </field> </field> </record> diff --git a/indoteknik_custom/views/promotion/promotion_program.xml b/indoteknik_custom/views/promotion/promotion_program.xml index f8432d8a..724f80c7 100644 --- a/indoteknik_custom/views/promotion/promotion_program.xml +++ b/indoteknik_custom/views/promotion/promotion_program.xml @@ -22,6 +22,7 @@ <group> <field name="name" /> <field name="banner" widget="image" height="160" /> + <field name="image" widget="image" height="160" /> <field name="keyword_ids" widget="many2many_tags" /> </group> <group> diff --git a/indoteknik_custom/views/promotion/promotion_program_line.xml b/indoteknik_custom/views/promotion/promotion_program_line.xml index db6d5252..346a08c9 100644 --- a/indoteknik_custom/views/promotion/promotion_program_line.xml +++ b/indoteknik_custom/views/promotion/promotion_program_line.xml @@ -23,7 +23,6 @@ <group> <field name="name" /> <field name="promotion_type" /> - <field name="image" widget="image" height="160" /> </group> <group> <field name="package_limit" /> diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml index c118f3fb..3f7ca5a7 100755 --- a/indoteknik_custom/views/purchase_order.xml +++ b/indoteknik_custom/views/purchase_order.xml @@ -23,11 +23,17 @@ <button name="indoteknik_custom.action_view_uangmuka_pembelian" string="UangMuka" type="action" attrs="{'invisible': [('approval_status', '!=', 'approved')]}"/> </button> + <button name="button_unlock" position="after"> + <button name="delete_line" type="object" string="Delete " states="draft"/> + </button> <field name="date_order" position="before"> <field name="sale_order_id" attrs="{'readonly': [('state', 'not in', ['draft'])]}"/> <field name="approval_status"/> <field name="amount_total_without_service"/> </field> + <field name="approval_status" position="after"> + <field name="revisi_po" attrs="{'readonly': [('state', 'not in', ['draft'])]}"/> + </field> <field name="currency_id" position="after"> <field name="summary_qty_po"/> <field name="count_line_product"/> @@ -51,11 +57,14 @@ <attribute name="options">{'no_create': True}</attribute> </field> <field name="product_qty" position="before"> + <field name="is_edit_product_qty" readonly="1" optional="hide"/> <field name="qty_onhand" readonly="1" optional="hide"/> <field name="qty_incoming" readonly="1" optional="hide"/> <field name="qty_outgoing" readonly="1" optional="hide"/> <field name="qty_available" readonly="1" optional="hide"/> - <field name="suggest" readonly="1"/> + <field name="qty_reserved" readonly="1" optional="hide"/> + <field name="suggest" readonly="1" widget="badge" decoration-danger="suggest == 'harus beli'" decoration-success="suggest == 'masih cukup'"/> + <!-- <field name="suggest" readonly="1"/> --> </field> <field name="price_unit" position="after"> <field name="price_vendor" attrs="{'readonly': 1}" optional="hide"/> @@ -93,7 +102,7 @@ </xpath> <xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='product_qty']" position="attributes"> - <attribute name="attrs">{'readonly': [], 'required': True}</attribute> + <attribute name="attrs">{'readonly': [('is_edit_product_qty', '=', False)], 'required': True}</attribute> </xpath> <xpath expr="//form/sheet/notebook/page[@name='purchase_delivery_invoice']" position="before"> @@ -212,4 +221,31 @@ </field> </record> </data> + <data> + <record id="purchase_order_multi_update_ir_actions_server" model="ir.actions.server"> + <field name="name">Update Paid Status</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="code">action = records.open_form_multi_update_paid_status()</field> + </record> + </data> + <data> + <record id="purchase_order_multi_confirm_ir_actions_server" model="ir.actions.server"> + <field name="name">Confirm PO</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="code">action = records.open_form_multi_confirm_po()</field> + </record> + </data> + <data> + <record id="purchase_order_multi_cancel_ir_actions_server" model="ir.actions.server"> + <field name="name">Cancel PO</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="code">action = records.open_form_multi_cancel()</field> + </record> + </data> </odoo>
\ No newline at end of file diff --git a/indoteknik_custom/views/purchase_order_multi_confirm.xml b/indoteknik_custom/views/purchase_order_multi_confirm.xml new file mode 100644 index 00000000..0d38be9e --- /dev/null +++ b/indoteknik_custom/views/purchase_order_multi_confirm.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<odoo> + <data> + <record id="view_purchase_order_multi_confirm_po_form" model="ir.ui.view"> + <field name="name">Purchase Order Multi Confirm</field> + <field name="model">purchase.order.multi_confirm</field> + <field name="arch" type="xml"> + <form> + <sheet> + <group> + <span>Apakah Anda Yakin Ingin Confirm PO Tersebut?</span> + </group> + </sheet> + <footer> + <button name="save_multi_confirm_po" string="Confirm PO" type="object" default_focus="1" class="oe_highlight"/> + <button string="Cancel" class="btn btn-secondary" special="cancel" /> + </footer> + </form> + </field> + </record> + + <record id="action_purchase_order_multi_confirm" model="ir.actions.act_window"> + <field name="name">Purchase Order Multi Confirm</field> + <field name="res_model">purchase.order.multi_confirm</field> + <field name="type">ir.actions.act_window</field> + <field name="view_mode">form</field> + <field name="view_id" ref="view_purchase_order_multi_confirm_po_form"/> + <field name="target">new</field> + </record> + </data> +</odoo>
\ No newline at end of file diff --git a/indoteknik_custom/views/purchase_order_multi_update.xml b/indoteknik_custom/views/purchase_order_multi_update.xml new file mode 100644 index 00000000..7cfcd64d --- /dev/null +++ b/indoteknik_custom/views/purchase_order_multi_update.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<odoo> + <data> + <record id="view_purchase_order_multi_update_paid_form" model="ir.ui.view"> + <field name="name">Purchase Order Multi Update Paid Status</field> + <field name="model">purchase.order.multi_update</field> + <field name="arch" type="xml"> + <form> + <sheet> + <group> + <span>Apakah Anda Yakin Ingin Mengubah Paid Status?</span> + </group> + </sheet> + <footer> + <button name="save_multi_update_paid_status" string="Update Paid Status" type="object" default_focus="1" class="oe_highlight"/> + <button string="Cancel" class="btn btn-secondary" special="cancel" /> + </footer> + </form> + </field> + </record> + + <record id="action_purchase_order_multi_update" model="ir.actions.act_window"> + <field name="name">Purchase Order Multi Update Paid Status</field> + <field name="res_model">purchase.order.multi_update</field> + <field name="type">ir.actions.act_window</field> + <field name="view_mode">form</field> + <field name="view_id" ref="view_purchase_order_multi_update_paid_form"/> + <field name="target">new</field> + </record> + </data> +</odoo>
\ No newline at end of file diff --git a/indoteknik_custom/views/purchase_pricelist.xml b/indoteknik_custom/views/purchase_pricelist.xml index f4cd4e78..df379804 100755 --- a/indoteknik_custom/views/purchase_pricelist.xml +++ b/indoteknik_custom/views/purchase_pricelist.xml @@ -8,7 +8,10 @@ <field name="product_id"/> <field name="vendor_id"/> <field name="product_price"/> + <field name="taxes_product_id"/> <field name="system_price"/> + <field name="taxes_system_id"/> + <field name="include_price"/> <field name="human_last_update"/> <field name="system_last_update"/> <field name="count_trx_po"/> @@ -28,7 +31,10 @@ <field name="product_id"/> <field name="vendor_id" context="{'res_partner_search_mode': 'supplier'}"/> <field name="product_price"/> + <field name="taxes_product_id"/> <field name="system_price"/> + <field name="taxes_system_id"/> + <field name="include_price"/> <field name="human_last_update"/> <field name="system_last_update"/> <field name="count_trx_po"/> diff --git a/indoteknik_custom/views/report_logbook_sj.xml b/indoteknik_custom/views/report_logbook_sj.xml new file mode 100644 index 00000000..52e00d17 --- /dev/null +++ b/indoteknik_custom/views/report_logbook_sj.xml @@ -0,0 +1,90 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<odoo> + <record id="report_logbook_sj_tree" model="ir.ui.view"> + <field name="name">report.logbook.sj.tree</field> + <field name="model">report.logbook.sj</field> + <field name="arch" type="xml"> + <tree create="0"> + <field name="name"/> + <field name="date"/> + <field name="name_picking"/> + <field name="approve_by_finance"/> + <field name="partner_id"/> + </tree> + </field> + </record> + + <record id="report_logbook_sj_line_tree" model="ir.ui.view"> + <field name="name">report.logbook.sj.line.tree</field> + <field name="model">report.logbook.sj.line</field> + <field name="arch" type="xml"> + <tree> + <field name="product_id"/> + <field name="location_id"/> + <field name="product_uom_qty"/> + <field name="qty_done"/> + <field name="product_uom_id"/> + </tree> + </field> + </record> + + <record id="report_logbook_sj_form" model="ir.ui.view"> + <field name="name">report.logbook.sj.form</field> + <field name="model">report.logbook.sj</field> + <field name="arch" type="xml"> + <form> + <header> + <button name="approve" + string="Approve" + type="object" + /> + </header> + <sheet string="Report logbook SJ"> + <div class="oe_button_box" name="button_box"/> + <group> + <group> + <field name="name" readonly="1"/> + <field name="date" readonly="1"/> + </group> + <group> + <field name="name_picking" readonly="1"/> + <field name="partner_id" readonly="1"/> + <field name="approve_by_finance" readonly="1"/> + </group> + </group> + <notebook> + <page string="Line"> + <field name="report_logbook_sj_line"/> + </page> + </notebook> + </sheet> + </form> + </field> + </record> +<!-- + <record id="view_report_logbook_sj_filter" model="ir.ui.view"> + <field name="name">report.logbook.sj.list.select</field> + <field name="model">report.logbook.sj</field> + <field name="priority" eval="15"/> + <field name="arch" type="xml"> + <search string="Search Report Logbook SJ"> + <field name="number"/> + <field name="partner_id"/> + <field name="dunning_line" string="Invoice" filter_domain="[('dunning_line.invoice_id', 'ilike', self)]"/> + </search> + </field> + </record> --> + + <record id="report_logbook_sj_action" model="ir.actions.act_window"> + <field name="name">Report Logbook SJ</field> + <field name="type">ir.actions.act_window</field> + <field name="res_model">report.logbook.sj</field> + <field name="view_mode">tree,form</field> + </record> + + <menuitem id="menu_report_logbook_sj" + name="Report Logbook SJ" + action="report_logbook_sj_action" + parent="account.menu_finance_reports" + sequence="200"/> +</odoo>
\ No newline at end of file diff --git a/indoteknik_custom/views/res_partner.xml b/indoteknik_custom/views/res_partner.xml index 58fff00a..da2dec99 100644 --- a/indoteknik_custom/views/res_partner.xml +++ b/indoteknik_custom/views/res_partner.xml @@ -23,6 +23,9 @@ <field name="is_berikat" position="after"> <field name="pakta_integritas"/> </field> + <group name="purchase" position="inside"> + <field name="leadtime"/> + </group> </field> </record> </data> diff --git a/indoteknik_custom/views/sale_monitoring_detail.xml b/indoteknik_custom/views/sale_monitoring_detail.xml index ce5b8e9b..5091fb83 100755 --- a/indoteknik_custom/views/sale_monitoring_detail.xml +++ b/indoteknik_custom/views/sale_monitoring_detail.xml @@ -10,6 +10,7 @@ <field name="partner_id"/> <field name="user_id"/> <field name="product_id"/> + <field name="vendor_id"/> <field name="qty_so"/> <field name="qty_reserved"/> <field name="qty_po"/> @@ -40,6 +41,7 @@ <field name="partner_id"/> <field name="user_id"/> <field name="product_id"/> + <field name="vendor_id"/> <field name="status" widget="badge" decoration-danger="status == 'Belum/Kurang PO'" @@ -74,6 +76,7 @@ <field name="user_id"/> <field name="product_id"/> <field name="status"/> + <field name="vendor_id"/> </search> </field> </record> diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml index 6b4a4ed7..02dba7d5 100755 --- a/indoteknik_custom/views/sale_order.xml +++ b/indoteknik_custom/views/sale_order.xml @@ -44,6 +44,9 @@ <field name="user_id" position="after"> <field name="helper_by_id" readonly="1"/> </field> + <field name="tag_ids" position="after"> + <field name="eta_date" readonly="1"/> + </field> <field name="analytic_account_id" position="after"> <field name="customer_type" required="1"/> <field name="npwp" placeholder='99.999.999.9-999.999' required="1"/> @@ -105,6 +108,9 @@ <xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='product_id']" position="before"> <field name="line_no" readonly="1" optional="hide"/> </xpath> + <xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='qty_delivered']" position="before"> + <field name="qty_reserved" readonly="1"/> + </xpath> <xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='product_id']" position="attributes"> <attribute name="options">{'no_create': True}</attribute> </xpath> diff --git a/indoteknik_custom/views/stock_picking.xml b/indoteknik_custom/views/stock_picking.xml index b0932d5a..979bede3 100644 --- a/indoteknik_custom/views/stock_picking.xml +++ b/indoteknik_custom/views/stock_picking.xml @@ -19,6 +19,7 @@ </field> <field name="partner_id" position="after"> <field name="purchase_representative_id"/> + <field name="status_printed"/> </field> </field> </record> @@ -59,6 +60,7 @@ </field> <field name="origin" position="after"> <field name="purchase_representative_id"/> + <field name="status_printed"/> <field name="purchase_id"/> <field name="date_doc_kirim"/> <field name="summary_qty_operation"/> |
