~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to tender_flow/board_purchase_view.xml

UF-358 [ADD] Initial creation : backup of this day

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="utf-8"?>
2
 
<openerp>
3
 
    <data>
4
 
 
5
 
        <!--<menuitem
6
 
            id="purchase.menu_purchase_deshboard"
7
 
            name="Dashboard"
8
 
            parent="base.next_id_73" sequence="0"/>-->
9
 
 
10
 
        <record id="purchase_draft" model="ir.actions.act_window">
11
 
            <field name="name">Draft Purchase Orders</field>
12
 
            <field name="type">ir.actions.act_window</field>
13
 
            <field name="res_model">purchase.order</field>
14
 
            <field name="view_type">form</field>
15
 
            <field name="view_mode">tree,form</field>
16
 
            <field name="domain">[('state','=','draft'), ('rfq_ok', '=', False)]</field>
17
 
            <field name="search_view_id" ref="purchase.purchase_order_tree"/>
18
 
        </record>
19
 
        
20
 
        <record id="purchase_waiting" model="ir.actions.act_window">
21
 
            <field name="name">Purchase Order Waiting Approval</field>
22
 
            <field name="type">ir.actions.act_window</field>
23
 
            <field name="res_model">purchase.order</field>
24
 
            <field name="view_type">form</field>
25
 
            <field name="view_mode">tree,form</field>
26
 
            <field name="domain">[('state','in',('wait','confirmed')), ('rfq_ok', '=', False)]</field>
27
 
            <field name="search_view_id" ref="purchase.purchase_order_tree"/>
28
 
        </record>
29
 
        
30
 
        <record id="rfq_draft" model="ir.actions.act_window">
31
 
            <field name="name">Draft Requests for Quotation</field>
32
 
            <field name="type">ir.actions.act_window</field>
33
 
            <field name="res_model">purchase.order</field>
34
 
            <field name="view_type">form</field>
35
 
            <field name="view_mode">tree,form</field>
36
 
            <field name="context">{'rfq_ok': True}</field>
37
 
            <field name="domain">[('state','=','draft'), ('rfq_ok', '=', True)]</field>
38
 
            <field name="view_id" ref="tender_flow.view_rfq_tree"/>
39
 
        </record>
40
 
        
41
 
        <record id="rfq_waiting" model="ir.actions.act_window">
42
 
            <field name="name">Requests for Quotation Waiting Approval</field>
43
 
            <field name="type">ir.actions.act_window</field>
44
 
            <field name="res_model">purchase.order</field>
45
 
            <field name="view_type">form</field>
46
 
            <field name="view_mode">tree,form</field>
47
 
            <field name="context">{'rfq_ok': True}</field>
48
 
            <field name="domain">[('state','in',('rfq_sent','rfq_updated')), ('rfq_ok', '=', True)]</field>
49
 
            <field name="view_id" ref="tender_flow.view_rfq_tree"/>
50
 
        </record>
51
 
 
52
 
                <record model="ir.ui.view" id="view_purchase_order_monthly_categ_tree">
53
 
            <field name="name">purchase.order.monthly.categ.tree</field>
54
 
            <field name="model">purchase.report</field>
55
 
            <field name="type">tree</field>
56
 
            <field name="arch" type="xml">
57
 
                <tree string="Monthly Purchase by Category">
58
 
                    <field name="month"/>
59
 
                    <field name="category_id"/>
60
 
                    <field name="price_total"/>
61
 
                    <field name="user_id" invisible="1"/>
62
 
                    <field name="partner_id" invisible="1"/>
63
 
                    <field name="product_id" invisible="1"/>
64
 
                    <field name="product_uom" invisible="1"/>
65
 
                    <field name="day" invisible="1"/>
66
 
                    <field name="name" invisible="1"/>
67
 
                    <field name="warehouse_id" invisible="1"/>
68
 
                    <field name="validator" invisible="1"/>
69
 
                    <field name="company_id" invisible="1"/>
70
 
                    <field name="state" invisible="1"/>
71
 
                    <field name="cost_center_id" invisible="1"/>
72
 
                    <field name="location_id" invisible="1" />
73
 
                </tree>
74
 
            </field>
75
 
        </record>
76
 
        <record model="ir.ui.view" id="view_purchase_order_monthly_categ_graph">
77
 
            <field name="name">purchase.order.monthly.categ.graph</field>
78
 
            <field name="model">purchase.report</field>
79
 
            <field name="type">graph</field>
80
 
            <field name="arch" type="xml">
81
 
                <graph string="Monthly Purchase by Category" type="bar">
82
 
                    <field name="month"/>
83
 
                    <field name="price_total" operator="+"/>
84
 
                    <field name="category_id" group="True"/>
85
 
                </graph>
86
 
            </field>
87
 
        </record>
88
 
            <record id="action_purchase_order_monthly_categ_graph" model="ir.actions.act_window">
89
 
                <field name="name">Monthly Purchase by Category</field>
90
 
                <field name="res_model">purchase.report</field>
91
 
                <field name="view_type">form</field>
92
 
                <field name="view_mode">graph,tree</field>
93
 
                <field name="context">{'group_by':['month','category_id'],'group_by_no_leaf':1}</field>
94
 
                <field name="view_id" ref="view_purchase_order_monthly_categ_graph"></field>
95
 
            </record>
96
 
            <record id="open_view_purchase_order_monthly_categ_tree" model="ir.actions.act_window.view">
97
 
            <field eval="2" name="sequence"/>
98
 
            <field name="view_mode">tree</field>
99
 
            <field name="view_id" ref="view_purchase_order_monthly_categ_tree"/>
100
 
            <field name="act_window_id" ref="action_purchase_order_monthly_categ_graph"/>
101
 
            </record>
102
 
            <record id="open_view_purchase_order_monthly_categ_graph" model="ir.actions.act_window.view">
103
 
                    <field eval="1" name="sequence"/>
104
 
                    <field name="view_mode">graph</field>
105
 
                    <field name="view_id" ref="view_purchase_order_monthly_categ_graph"/>
106
 
                    <field name="act_window_id" ref="action_purchase_order_monthly_categ_graph"/>
107
 
            </record>
108
 
 
109
 
        <record model="ir.ui.view" id="view_negotiation_by_supplier_tree">
110
 
            <field name="name">negotiation.by.supplier.tree</field>
111
 
            <field name="model">purchase.report</field>
112
 
            <field name="type">tree</field>
113
 
            <field name="arch" type="xml">
114
 
                <tree string="Negotiation by Supplier">
115
 
                    <field name="partner_id"/>
116
 
                    <field name="negociation"/>
117
 
                </tree>
118
 
            </field>
119
 
        </record>
120
 
        <record model="ir.ui.view" id="view_negotiation_by_supplier_graph">
121
 
            <field name="name">negotiation.by.supplier.graph</field>
122
 
            <field name="model">purchase.report</field>
123
 
            <field name="type">graph</field>
124
 
            <field name="arch" type="xml">
125
 
                <graph string="Negotiation by Supplier" type="bar">
126
 
                    <field name="partner_id"/>
127
 
                    <field name="negociation"/>
128
 
                </graph>
129
 
            </field>
130
 
        </record>
131
 
                <record id="action_negotiation_by_supplier" model="ir.actions.act_window">
132
 
                <field name="name">Negotiation by Supplier</field>
133
 
                <field name="res_model">purchase.report</field>
134
 
                <field name="view_type">form</field>
135
 
                <field name="view_mode">graph,tree</field>
136
 
                <field name="context">{'group_by':['partner_id'],'group_by_no_leaf':1}</field>
137
 
                <field name="view_id" ref="view_negotiation_by_supplier_graph"/>
138
 
            </record>
139
 
            <record id="open_view_negotiation_by_supplier_tree" model="ir.actions.act_window.view">
140
 
            <field eval="2" name="sequence"/>
141
 
            <field name="view_mode">tree</field>
142
 
            <field name="view_id" ref="view_negotiation_by_supplier_tree"/>
143
 
            <field name="act_window_id" ref="action_negotiation_by_supplier"/>
144
 
            </record>
145
 
            <record id="open_view_negotiation_by_supplier_graph" model="ir.actions.act_window.view">
146
 
                    <field eval="1" name="sequence"/>
147
 
                    <field name="view_mode">graph</field>
148
 
                    <field name="view_id" ref="view_negotiation_by_supplier_graph"/>
149
 
                    <field name="act_window_id" ref="action_negotiation_by_supplier"/>
150
 
            </record>
151
 
 
152
 
        <record id="board_purchase_form" model="ir.ui.view">
153
 
            <field name="name">board.purchase.form</field>
154
 
            <field name="model">board.board</field>
155
 
            <field name="type">form</field>
156
 
            <field name="arch" type="xml">
157
 
                <form string="My Board">
158
 
                    <hpaned>
159
 
                        <child1>
160
 
                        <!--
161
 
                            <action colspan="4" height="220" name="%(purchase.action_current_purchases)d" string="Current purchases"  width="510"/>
162
 
                            <action colspan="4" height="220" name="%(purchase.action_po_per_month_tree)d" string="Purchase order per month"  width="510"/>
163
 
                        -->
164
 
                                <action colspan="4" height="220" name="%(purchase_draft)d" string="Draft Purchase Orders"  width="510"/>
165
 
                                <action colspan="4" height="220" name="%(purchase_waiting)d" string="Purchase Order Waiting Approval"  width="510"/>
166
 
                                <action colspan="4" height="220" name="%(rfq_draft)d" string="Draft Requests for Quotation"  width="510"/>
167
 
                                <action colspan="4" height="220" name="%(rfq_waiting)d" string="Requests for Quotation Waiting Approval"  width="510"/>
168
 
                        </child1>
169
 
                        <child2>
170
 
                                <action colspan="4" height="220" name="%(action_purchase_order_monthly_categ_graph)d" string="Monthly Purchase by Category"  />
171
 
                        <!--
172
 
                            <action colspan="4" height="220" name="%(purchase.action_purchase_by_supplier)d" string="Purchase by supplier"  />
173
 
                            <action colspan="4" height="220" name="%(purchase.action_total_price_by_product_by_state)d" string="Total price by product by state"  />
174
 
                            <action colspan="4" height="220" name="%(purchase.action_qty_per_product)d" string="Total Quantity per product"  />
175
 
                        -->
176
 
 
177
 
                        </child2>
178
 
                    </hpaned>
179
 
                </form>
180
 
            </field>
181
 
        </record>
182
 
 
183
 
        <record id="open_board_purchase" model="ir.actions.act_window">
184
 
            <field name="name">Purchase Dashboard</field>
185
 
            <field name="res_model">board.board</field>
186
 
            <field name="view_type">form</field>
187
 
            <field name="view_mode">form</field>
188
 
            <field name="usage">menu</field>
189
 
            <field name="view_id" ref="board_purchase_form"/>
190
 
        </record>
191
 
        <menuitem
192
 
            action="open_board_purchase"
193
 
            icon="terp-graph"
194
 
            id="purchase.menu_board_purchase"
195
 
            parent="purchase.menu_purchase_deshboard"
196
 
            sequence="4"/>
197
 
 
198
 
        <menuitem icon="terp-purchase" id="base.menu_purchase_root" action="open_board_purchase" name="Purchases"/>
199
 
 
200
 
 
201
 
    </data>
202
 
</openerp>