summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-05-31 15:36:00 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-05-31 15:36:00 +0700
commitcaae31d0376d62ca62a6d4e3fa5aaa0842fc9c88 (patch)
tree0d77af3caa0eae74ecfa03b91da6879c7bdb3ede /indoteknik_custom/views
parent21f7c7a9b5ad175994b0824f82f9459feed3ca90 (diff)
new module of requisition
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/ir_sequence.xml10
-rw-r--r--indoteknik_custom/views/requisition.xml101
2 files changed, 111 insertions, 0 deletions
diff --git a/indoteknik_custom/views/ir_sequence.xml b/indoteknik_custom/views/ir_sequence.xml
index 6a6f474d..9af85408 100644
--- a/indoteknik_custom/views/ir_sequence.xml
+++ b/indoteknik_custom/views/ir_sequence.xml
@@ -30,5 +30,15 @@
<field name="number_next">1</field>
<field name="number_increment">1</field>
</record>
+
+ <record id="sequence_requisition" model="ir.sequence">
+ <field name="name">Requisition</field>
+ <field name="code">requisition</field>
+ <field name="active">TRUE</field>
+ <field name="prefix">RPO/%(year)s/</field>
+ <field name="padding">5</field>
+ <field name="number_next">1</field>
+ <field name="number_increment">1</field>
+ </record>
</data>
</odoo> \ No newline at end of file
diff --git a/indoteknik_custom/views/requisition.xml b/indoteknik_custom/views/requisition.xml
new file mode 100644
index 00000000..6e61ce1e
--- /dev/null
+++ b/indoteknik_custom/views/requisition.xml
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<odoo>
+ <record id="requisition_tree" model="ir.ui.view">
+ <field name="name">requisition.tree</field>
+ <field name="model">requisition</field>
+ <field name="arch" type="xml">
+ <tree>
+ <field name="date_doc"/>
+ <field name="number"/>
+ <field name="description"/>
+ <field name="notification" readonly="1"/>
+ <field name="is_po" readonly="1"/>
+ </tree>
+ </field>
+ </record>
+
+ <record id="requisition_line_tree" model="ir.ui.view">
+ <field name="name">requisition.line.tree</field>
+ <field name="model">requisition.line</field>
+ <field name="arch" type="xml">
+ <tree>
+ <field name="brand_id"/>
+ <field name="product_id"/>
+ <field name="partner_id"/>
+ <field name="qty_purchase"/>
+ <field name="price_unit"/>
+ <field name="tax_id"/>
+ <field name="subtotal"/>
+ <field name="source"/>
+ </tree>
+ </field>
+ </record>
+
+ <record id="requisition_purchase_match_tree" model="ir.ui.view">
+ <field name="name">requisition.purchase.match.tree</field>
+ <field name="model">requisition.purchase.match</field>
+ <field name="arch" type="xml">
+ <tree>
+ <field name="order_id" readonly="1"/>
+ <field name="vendor" readonly="1"/>
+ <field name="total" readonly="1"/>
+ </tree>
+ </field>
+ </record>
+
+ <record id="requisition_form" model="ir.ui.view">
+ <field name="name">requisition.form</field>
+ <field name="model">requisition</field>
+ <field name="arch" type="xml">
+ <form>
+ <sheet string="Requisition">
+ <div class="oe_button_box" name="button_box"/>
+ <group>
+ <group>
+ <field name="number"/>
+ <field name="date_doc"/>
+ <field name="sale_order_id"/>
+ <field name="description"/>
+ <field name="notification" readonly="1"/>
+ </group>
+ <group>
+ <div>
+ <button name="create_requisition_from_sales"
+ string="Create Line"
+ type="object"
+ class="mr-2 oe_highlight"
+ />
+ <button name="create_po_from_requisition"
+ string="Create PO"
+ type="object"
+ class="mr-2 oe_highlight"
+ />
+ </div>
+ </group>
+ </group>
+ <notebook>
+ <page string="Lines">
+ <field name="requisition_lines"/>
+ </page>
+ <page string="Matches">
+ <field name="requisition_match"/>
+ </page>
+ </notebook>
+ </sheet>
+ </form>
+ </field>
+ </record>
+
+ <record id="requisition_action" model="ir.actions.act_window">
+ <field name="name">Requisition</field>
+ <field name="type">ir.actions.act_window</field>
+ <field name="res_model">requisition</field>
+ <field name="view_mode">tree,form</field>
+ </record>
+
+ <menuitem id="menu_requisition"
+ name="Requisition"
+ action="requisition_action"
+ parent="menu_monitoring_in_purchase"
+ sequence="300"/>
+</odoo> \ No newline at end of file