summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/purchase_outstanding.xml
blob: dc2037441e7454cac48af0bad93df8df1c5e9e56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="purchase_outstanding_tree" model="ir.ui.view">
        <field name="name">purchase.outstanding.tree</field>
        <field name="model">purchase.outstanding</field>
        <field name="arch" type="xml">
            <tree create="false">
                <field name="order_id"/>
                <field name="partner_id"/>
                <field name="user_id"/>
                <field name="date_order"/>
                <field name="po_state"/>
                <field name="po_status"/>
                <field name="product_id"/>
                <field name="product_uom_qty"/>
                <field name="qty_received"/>
            </tree>
        </field>
    </record>

    <record id="purchase_outstanding_form" model="ir.ui.view">
        <field name="name">purchase.outstanding.form</field>
        <field name="model">purchase.outstanding</field>
        <field name="arch" type="xml">
            <form create="false" edit="false">
                <sheet>
                    <group>
                        <group>
                            <field name="order_id"/>
                            <field name="partner_id"/>
                            <field name="user_id"/>
                            <field name="date_order"/>
                            <field name="po_state"/>
                            <field name="po_status"/>
                            <field name="product_id"/>
                        </group>
                        <group>
                            <field name="product_uom_qty"/>
                            <field name="qty_received"/>
                        </group>
                    </group>
                </sheet>
            </form>
        </field>
    </record>

    <record id="view_purchase_outstanding_filter" model="ir.ui.view">
            <field name="name">purchase.outstanding.list.select</field>
            <field name="model">purchase.outstanding</field>
            <field name="priority" eval="15"/>
            <field name="arch" type="xml">
                <search string="Search Purchase Outstanding">
                    <field name="order_id"/>
                    <field name="product_id"/>
               </search>
            </field>
        </record>

    <record id="purchase_outstanding_action" model="ir.actions.act_window">
        <field name="name">Purchase Outstanding</field>
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">purchase.outstanding</field>
        <field name="search_view_id" ref="view_purchase_outstanding_filter"/>
        <field name="view_mode">tree,form</field>
    </record>

    <menuitem
            id="menu_purchase_outstanding"
            name="Purchase Outstanding"
            parent="purchase.menu_purchase_products"
            sequence="4"
            action="purchase_outstanding_action"
    />
</odoo>