2010-06-08 07:12:11 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
<record model="ir.ui.view" id="view_purchase_order_graph">
|
|
|
|
<field name="name">product.month.graph</field>
|
|
|
|
<field name="model">purchase.report</field>
|
|
|
|
<field name="type">graph</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<graph string="Purchase Orders Statistics" type="bar">
|
|
|
|
<field name="product_id"/>
|
|
|
|
<field name="price_total" operator="+"/>
|
|
|
|
</graph>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="view_purchase_order_tree" model="ir.ui.view">
|
|
|
|
<field name="name">purchase.order.tree</field>
|
|
|
|
<field name="model">purchase.report</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Purchase Orders Statistics">
|
2010-06-13 09:01:34 +00:00
|
|
|
<field name="date" invisible="1"/>
|
|
|
|
<field name="date_approve" invisible="1"/>
|
|
|
|
<field name="expected_date" invisible="1"/>
|
|
|
|
<field name="user_id" invisible="1"/>
|
|
|
|
<field name="partner_id" invisible="1"/>
|
2010-06-08 07:12:11 +00:00
|
|
|
<field name="product_id" invisible="1"/>
|
2010-06-13 09:01:34 +00:00
|
|
|
<field name="day" invisible="1"/>
|
2010-06-08 07:12:11 +00:00
|
|
|
<field name="name" invisible="1"/>
|
|
|
|
<field name="month" invisible="1"/>
|
|
|
|
<field name="warehouse_id" invisible="1"/>
|
|
|
|
<field name="validator" invisible="1"/>
|
|
|
|
<field name="company_id" invisible="1"/>
|
|
|
|
<field name="state" invisible="1"/>
|
|
|
|
<field name="location_id" invisible="1"/>
|
2010-06-13 09:01:34 +00:00
|
|
|
<field name="nbr"/>
|
|
|
|
<field name="shipped_qty" widget="progressbar"/>
|
|
|
|
<field name="invoiced_qty" widget="progressbar"/>
|
|
|
|
<field name="quantity" sum="# of Products"/>
|
2010-06-08 07:12:11 +00:00
|
|
|
<field name="price_average" avg="Average Price"/>
|
2010-06-13 09:01:34 +00:00
|
|
|
<field name="price_total" sum="Total Price"/>
|
|
|
|
<field name="delay"/>
|
|
|
|
<field name="delay_pass"/>
|
2010-06-08 07:12:11 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="view_purchase_order_search" model="ir.ui.view">
|
|
|
|
<field name="name">report.purchase.order.search</field>
|
|
|
|
<field name="model">purchase.report</field>
|
|
|
|
<field name="type">search</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Purchase Orders">
|
|
|
|
<group colspan="10" col="12">
|
2010-06-13 09:01:34 +00:00
|
|
|
<filter icon="terp-purchase" string="This Year"
|
|
|
|
domain="[('date','<=', time.strftime('%%Y-%%m-%%d')),('date','>',(datetime.date.today()-datetime.timedelta(days=365)).strftime('%%Y-%%m-%%d'))]"
|
|
|
|
help="Tasks performed in this year"/>
|
2010-06-08 07:12:11 +00:00
|
|
|
<filter icon="terp-purchase" string="This Month"
|
2010-06-13 09:01:34 +00:00
|
|
|
name="month"
|
|
|
|
domain="[('date','<=', time.strftime('%%Y-%%m-%%d')), ('date','>',(datetime.date.today()-datetime.timedelta(days=30)).strftime('%%Y-%%m-%%d'))]"
|
|
|
|
help="Tasks performed in this month"/>
|
2010-06-08 07:12:11 +00:00
|
|
|
<filter icon="gtk-media-rewind"
|
2010-06-13 09:01:34 +00:00
|
|
|
string="7 Days"
|
2010-06-08 07:12:11 +00:00
|
|
|
separator="1"
|
|
|
|
domain="[('date','<=', time.strftime('%%Y-%%m-%%d')), ('date','>',(datetime.date.today()-datetime.timedelta(days=7)).strftime('%%Y-%%m-%%d'))]"
|
|
|
|
help="Tasks during last 7 days"/>
|
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<filter icon="terp-purchase"
|
2010-06-13 09:01:34 +00:00
|
|
|
string="Quotations"
|
|
|
|
name="quotes"
|
|
|
|
domain="[('state','=','draft')]"/>
|
2010-06-08 07:12:11 +00:00
|
|
|
<filter icon="terp-purchase"
|
2010-06-13 09:01:34 +00:00
|
|
|
string="Orders"
|
|
|
|
name="orders"
|
|
|
|
domain="[('state','<>','draft'),('state','<>','cancel')]"/>
|
2010-06-08 07:12:11 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-06-13 09:01:34 +00:00
|
|
|
<field name="partner_id"/>
|
2010-06-08 07:12:11 +00:00
|
|
|
<field name="product_id"/>
|
2010-06-13 09:01:34 +00:00
|
|
|
<field name="user_id"/>
|
|
|
|
<field name="company_id" groups="base.group_multi_company"/>
|
|
|
|
</group>
|
|
|
|
<newline/>
|
2010-06-08 07:12:11 +00:00
|
|
|
<group expand="1" string="Group By..." colspan="10" col="12">
|
2010-06-13 09:01:34 +00:00
|
|
|
<filter string="Supplier" name="group_partner_id" icon="terp-purchase" context="{'group_by':'partner_id'}"/>
|
|
|
|
<filter string="Product" name="group_product_id" icon="terp-purchase" context="{'group_by':'product_id'}"/>
|
|
|
|
<separator orientation="vertical"/>
|
2010-06-08 07:12:11 +00:00
|
|
|
<filter string="Responsible" name="Responsible" icon="terp-purchase" context="{'group_by':'user_id'}"/>
|
|
|
|
<filter string="Validated by" icon="terp-purchase" context="{'group_by':'validator'}"/>
|
|
|
|
<separator orientation="vertical"/>
|
2010-06-13 09:01:34 +00:00
|
|
|
<filter string="Company" icon="terp-purchase" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
|
2010-06-08 07:12:11 +00:00
|
|
|
<filter string="Warehouse" icon="terp-purchase" context="{'group_by':'warehouse_id'}"/>
|
|
|
|
<filter string="Destination" icon="terp-purchase" context="{'group_by':'location_id'}"/>
|
|
|
|
<separator orientation="vertical"/>
|
2010-06-13 09:01:34 +00:00
|
|
|
<filter string="State" icon="terp-purchase" context="{'group_by':'state'}"/>
|
2010-06-08 07:12:11 +00:00
|
|
|
<filter string="Day" icon="terp-purchase" context="{'group_by':'day'}"/>
|
|
|
|
<filter string="Month" icon="terp-purchase" context="{'group_by':'month'}"/>
|
|
|
|
<filter string="Year" icon="terp-purchase" context="{'group_by':'name'}"/>
|
|
|
|
</group>
|
2010-06-13 09:01:34 +00:00
|
|
|
<newline/>
|
2010-06-08 07:12:11 +00:00
|
|
|
<group expand="0" string="Extended filters..." colspan="10" col="12" groups="base.group_extended">
|
|
|
|
<field name="date"/>
|
|
|
|
<field name="date_approve"/>
|
|
|
|
<field name="expected_date"/>
|
|
|
|
<newline/>
|
|
|
|
<field name="warehouse_id" widget="selection"/>
|
|
|
|
<field name="validator" widget="selection"/>
|
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<field name="location_id"/>
|
|
|
|
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
|
|
|
|
</group>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="action_purchase_order_report_all" model="ir.actions.act_window">
|
|
|
|
<field name="name">Purchase Orders</field>
|
|
|
|
<field name="res_model">purchase.report</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,graph</field>
|
2010-06-13 09:01:34 +00:00
|
|
|
<field name="context">{'search_default_month':1,'search_default_group_partner_id':1,'search_default_group_product_id': 1, 'search_default_orders': 1, 'group_by_no_leaf':1,'group_by':[]}</field>
|
2010-06-08 07:12:11 +00:00
|
|
|
</record>
|
|
|
|
|
|
|
|
<menuitem id="base.next_id_73" name="Reporting" parent="base.menu_purchase_root" sequence="8"/>
|
|
|
|
<menuitem action="action_purchase_order_report_all" id="menu_action_purchase_order_report_all" parent="base.next_id_73" sequence="3"/>
|
|
|
|
|
2010-06-13 09:01:34 +00:00
|
|
|
<record id="action_purchase_order_qty_amount_all" model="ir.actions.act_window">
|
|
|
|
<field name="name">Purchase Orders by Month</field>
|
|
|
|
<field name="res_model">purchase.report</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">graph,tree</field>
|
|
|
|
<field name="context">{'group_by_no_leaf': 1, 'group_by': ['month']}</field>
|
|
|
|
<field name="domain">[('date','>=',time.strftime('%Y-01-01'))]</field>
|
|
|
|
</record>
|
2010-06-08 07:12:11 +00:00
|
|
|
|
2010-06-13 09:01:34 +00:00
|
|
|
<record id="action_purchase_order_by_user_all" model="ir.actions.act_window">
|
|
|
|
<field name="name">Purchase Orders by Supplier</field>
|
|
|
|
<field name="res_model">purchase.report</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">graph,tree</field>
|
|
|
|
<field name="context">{'group_by_no_leaf': 1, 'group_by': ['partner_id']}</field>
|
|
|
|
<field name="domain">[('date','>=',time.strftime('%Y-01-01'))]</field>
|
|
|
|
</record>
|
2010-06-08 07:12:11 +00:00
|
|
|
|
|
|
|
</data>
|
|
|
|
</openerp>
|