1
<?xml version="1.0" encoding="utf-8"?>
6
id="purchase.menu_purchase_deshboard"
8
parent="base.next_id_73" sequence="0"/>-->
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"/>
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"/>
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"/>
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"/>
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">
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" />
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">
83
<field name="price_total" operator="+"/>
84
<field name="category_id" group="True"/>
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>
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"/>
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"/>
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"/>
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"/>
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"/>
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"/>
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"/>
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">
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"/>
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"/>
170
<action colspan="4" height="220" name="%(action_purchase_order_monthly_categ_graph)d" string="Monthly Purchase by Category" />
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" />
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"/>
192
action="open_board_purchase"
194
id="purchase.menu_board_purchase"
195
parent="purchase.menu_purchase_deshboard"
198
<menuitem icon="terp-purchase" id="base.menu_purchase_root" action="open_board_purchase" name="Purchases"/>