summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-01-09 15:03:15 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-01-09 15:03:15 +0700
commitdfd4a1617d2c62b99d4bbcb6386b477874a33ebf (patch)
treecf929b7967798000910e6f8afc6156de512fc330 /indoteknik_custom/views
parent3615748eafd2d2cfd81f6ddc95d50a7bc347798d (diff)
multiple confirm purchase orders
Diffstat (limited to 'indoteknik_custom/views')
-rwxr-xr-xindoteknik_custom/views/purchase_order.xml9
-rw-r--r--indoteknik_custom/views/purchase_order_multi_confirm.xml31
2 files changed, 40 insertions, 0 deletions
diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml
index 3a95393e..fff582b1 100755
--- a/indoteknik_custom/views/purchase_order.xml
+++ b/indoteknik_custom/views/purchase_order.xml
@@ -197,4 +197,13 @@
<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>
</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