summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-02-02 13:32:55 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-02-02 13:32:55 +0700
commit8978868864925683d02342112020e7fc047a4acf (patch)
tree1176a2d6f65e71a4bccde20c6dd4cbea79b4b8fa /indoteknik_custom/views
parentd6c7fad834f954f892cea0eb9e082db822bc8f2b (diff)
logbook sj and mark as cancel po
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/logbook_sj.xml52
-rw-r--r--indoteknik_custom/views/po_multi_cancel.xml31
-rwxr-xr-xindoteknik_custom/views/purchase_order.xml9
-rw-r--r--indoteknik_custom/views/report_logbook_sj.xml90
4 files changed, 182 insertions, 0 deletions
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/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml
index 52e98787..a6f28ffa 100755
--- a/indoteknik_custom/views/purchase_order.xml
+++ b/indoteknik_custom/views/purchase_order.xml
@@ -213,4 +213,13 @@
<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/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