2010-03-10 09:41:29 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
<record id="view_account_invoice_report_tree" model="ir.ui.view">
|
|
|
|
<field name="name">account.invoice.report.tree</field>
|
|
|
|
<field name="model">account.invoice.report</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
2010-07-20 09:12:49 +00:00
|
|
|
<tree colors="blue:state in ('draft');gray:state in ('cancel','paid');black:state in ('proforma','proforma2')" string="Invoices Analysis">
|
2010-04-20 11:04:24 +00:00
|
|
|
<field name="date" invisible="1"/>
|
|
|
|
<field name="user_id" invisible="1"/>
|
2010-03-10 09:41:29 +00:00
|
|
|
<field name="year" invisible="1"/>
|
2010-04-20 11:04:24 +00:00
|
|
|
<field name="day" invisible="1"/>
|
2010-03-10 09:41:29 +00:00
|
|
|
<field name="month" invisible="1"/>
|
2010-03-10 11:05:01 +00:00
|
|
|
<field name="type" invisible="1"/>
|
2010-03-10 09:41:29 +00:00
|
|
|
<field name="company_id" invisible="1"/>
|
2010-04-20 11:04:24 +00:00
|
|
|
<field name="partner_id" invisible="1"/>
|
|
|
|
<field name="product_id" invisible="1"/>
|
2010-05-31 10:18:33 +00:00
|
|
|
<field name="uom_name" invisible="not context.get('set_visible',False)"/>
|
|
|
|
<field name="categ_id" invisible="1"/>
|
2010-03-10 09:41:29 +00:00
|
|
|
<field name="state" invisible="1"/>
|
2010-04-07 09:07:16 +00:00
|
|
|
<field name="period_id" invisible="1"/>
|
|
|
|
<field name="currency_id" invisible="1"/>
|
|
|
|
<field name="journal_id" invisible="1"/>
|
2010-04-29 08:27:53 +00:00
|
|
|
<field name="address_contact_id" invisible="1"/>
|
|
|
|
<field name="address_invoice_id" invisible="1"/>
|
2010-07-19 13:47:09 +00:00
|
|
|
<field name="partner_bank_id" invisible="1"/>
|
2010-09-20 16:01:12 +00:00
|
|
|
<field name="date_due" invisible="1"/>
|
2010-06-07 07:24:19 +00:00
|
|
|
<field name="account_id" invisible="1"/>
|
2010-06-25 10:24:30 +00:00
|
|
|
<field name="nbr" sum="# of Lines"/>
|
2010-07-09 07:00:10 +00:00
|
|
|
<field name="product_qty" sum="Qty"/>
|
2010-08-13 12:06:07 +00:00
|
|
|
<!-- <field name="reconciled" sum="# Reconciled"/> -->
|
2010-07-09 06:16:41 +00:00
|
|
|
<field name="price_average" sum="Average Price"/>
|
2010-08-14 03:25:58 +00:00
|
|
|
<field name="price_total" sum="Total Without Tax"/>
|
|
|
|
<field name="price_total_tax" sum="Total With Tax"/>
|
2010-07-09 06:29:19 +00:00
|
|
|
<field name="residual" sum="Total Residual" invisible="context.get('residual_invisible',False)"/>
|
2010-09-24 11:50:17 +00:00
|
|
|
<field name="due_delay" sum="Avg. Due Delay" invisible="context.get('residual_invisible',False)"/>
|
2010-07-09 06:37:17 +00:00
|
|
|
<field name="delay_to_pay" sum="Avg. Delay To Pay" invisible="context.get('residual_invisible',False)"/>
|
2010-03-10 09:41:29 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="view_account_invoice_report_graph" model="ir.ui.view">
|
|
|
|
<field name="name">account.invoice.report.graph</field>
|
|
|
|
<field name="model">account.invoice.report</field>
|
|
|
|
<field name="type">graph</field>
|
|
|
|
<field name="arch" type="xml">
|
2010-05-27 06:22:02 +00:00
|
|
|
<graph string="Invoices Analysis" type="bar">
|
2010-03-10 09:41:29 +00:00
|
|
|
<field name="product_id"/>
|
|
|
|
<field name="price_total"/>
|
|
|
|
</graph>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="view_account_invoice_report_search" model="ir.ui.view">
|
|
|
|
<field name="name">account.invoice.report.search</field>
|
|
|
|
<field name="model">account.invoice.report</field>
|
|
|
|
<field name="type">search</field>
|
|
|
|
<field name="arch" type="xml">
|
2010-05-27 06:22:02 +00:00
|
|
|
<search string="Invoices Analysis">
|
2010-05-03 09:19:40 +00:00
|
|
|
<group col="10" colspan="12">
|
2010-08-13 10:58:20 +00:00
|
|
|
<filter string="Draft"
|
2010-09-08 09:20:55 +00:00
|
|
|
icon="terp-document-new"
|
2010-08-13 10:58:20 +00:00
|
|
|
domain="[('state','=','draft')]"
|
|
|
|
help = "Draft Invoices"/>
|
2010-07-07 09:54:42 +00:00
|
|
|
<filter string="Pro-forma"
|
2010-09-08 09:20:55 +00:00
|
|
|
icon="terp-gtk-media-pause"
|
2010-08-14 03:25:58 +00:00
|
|
|
domain="['|', ('state','=','proforma'),('state','=','proforma2')]"
|
2010-07-07 09:54:42 +00:00
|
|
|
help = "Pro-forma Invoices"/>
|
2010-09-20 16:01:12 +00:00
|
|
|
<filter string="Invoiced"
|
|
|
|
name="current"
|
|
|
|
icon="terp-check"
|
|
|
|
domain="[('state','not in', ('draft','cancel'))]"
|
|
|
|
help = "Open and Paid Invoices"/>
|
2010-09-08 16:17:22 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-10-25 12:34:08 +00:00
|
|
|
<filter icon="terp-personal" string="Customer"
|
2010-09-20 16:01:12 +00:00
|
|
|
name="customer"
|
2010-08-13 10:58:20 +00:00
|
|
|
domain="['|', ('type','=','out_invoice'),('type','=','out_refund')]"
|
|
|
|
help="Customer Invoices And Refunds"/>
|
2010-10-25 12:34:08 +00:00
|
|
|
<filter icon="terp-personal"
|
2010-10-09 16:01:43 +00:00
|
|
|
string="supplier"
|
2010-08-13 10:58:20 +00:00
|
|
|
separator="1"
|
|
|
|
domain="['|', ('type','=','in_invoice'),('type','=','in_refund')]"
|
2010-10-09 16:01:43 +00:00
|
|
|
help="Supplier Invoices And Refunds"/>
|
2010-09-08 16:17:22 +00:00
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<filter icon="terp-dolar" string="Invoice"
|
|
|
|
domain="['|', ('type','=','out_invoice'),('type','=','in_invoice')]"
|
2010-10-09 16:01:43 +00:00
|
|
|
help="Customer And Supplier Invoices"/>
|
2010-09-08 16:17:22 +00:00
|
|
|
<filter icon="terp-dolar_ok!"
|
|
|
|
string="Refund"
|
|
|
|
separator="1"
|
|
|
|
domain="['|', ('type','=','out_refund'),('type','=','in_refund')]"
|
|
|
|
help="Customer And Supplier Refunds"/>
|
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<field name="partner_id"/>
|
|
|
|
<field name="user_id" />
|
2010-10-10 17:32:39 +00:00
|
|
|
<field name="date" string="Invoice Date"/>
|
2010-09-08 16:17:22 +00:00
|
|
|
<field name="categ_id" />
|
2010-06-25 08:46:21 +00:00
|
|
|
</group>
|
|
|
|
<newline/>
|
2010-10-26 13:02:35 +00:00
|
|
|
<group expand="0" string="Extended Filters..." groups="base.group_extended">
|
|
|
|
<field name="product_id"/>
|
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<field name="journal_id" widget="selection"/>
|
|
|
|
<field name="account_id"/>
|
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<field name="date_due"/>
|
|
|
|
<separator orientation="vertical" groups="base.group_multi_company"/>
|
|
|
|
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
|
|
|
|
</group>
|
|
|
|
<newline/>
|
2010-07-07 10:07:04 +00:00
|
|
|
<group expand="1" string="Group By...">
|
2010-10-13 06:20:59 +00:00
|
|
|
<filter string="Partner" name="partner" icon="terp-partner" context="{'group_by':'partner_id','residual_visible':True}"/>
|
2010-07-09 06:29:19 +00:00
|
|
|
<filter string="Salesman" name='user' icon="terp-personal" context="{'group_by':'user_id'}"/>
|
2010-07-08 12:18:43 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-07-09 06:29:19 +00:00
|
|
|
<filter string="Product" icon="terp-accessories-archiver" context="{'group_by':'product_id','set_visible':True,'residual_invisible':True}"/>
|
2010-07-08 12:18:43 +00:00
|
|
|
<filter string="Category of Product" icon="terp-stock_symbol-selection" context="{'group_by':'categ_id','residual_invisible':True}"/>
|
2010-04-29 08:27:53 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-07-09 06:29:19 +00:00
|
|
|
<filter string="State" icon="terp-stock_effects-object-colorize" context="{'group_by':'state'}"/>
|
|
|
|
<filter string="Type" icon="terp-stock_symbol-selection" context="{'group_by':'type'}"/>
|
2010-03-10 12:15:50 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-07-09 06:29:19 +00:00
|
|
|
<filter string="Journal" icon="terp-folder-orange" context="{'group_by':'journal_id'}"/>
|
2010-03-10 12:15:50 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-09-20 16:01:12 +00:00
|
|
|
<filter string="Due Date" icon="terp-go-today" context="{'group_by':'date_due'}"/>
|
2010-09-08 09:20:55 +00:00
|
|
|
<filter string="Period" icon="terp-go-month" context="{'group_by':'period_id'}"/>
|
2010-09-20 16:01:12 +00:00
|
|
|
<separator orientation="vertical" groups="base.group_multi_company"/>
|
2010-07-09 06:29:19 +00:00
|
|
|
<filter string="Company" icon="terp-go-home" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
|
2010-07-08 07:24:57 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-09-20 16:01:12 +00:00
|
|
|
<filter string="Day" name="day" icon="terp-go-today" context="{'group_by':'day'}" help="Group by Invoice Date"/>
|
|
|
|
<filter string="Month" name="month" icon="terp-go-month" context="{'group_by':'month'}" help="Group by month of Invoice Date"/>
|
|
|
|
<filter string="Year" name="year" icon="terp-go-year" context="{'group_by':'year'}" help="Group by year of Invoice Date"/>
|
2010-03-10 12:15:50 +00:00
|
|
|
</group>
|
2010-03-10 09:41:29 +00:00
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="action_account_invoice_report_all" model="ir.actions.act_window">
|
2010-05-27 06:22:02 +00:00
|
|
|
<field name="name">Invoices Analysis</field>
|
2010-03-10 09:41:29 +00:00
|
|
|
<field name="res_model">account.invoice.report</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,graph</field>
|
2010-10-13 06:20:59 +00:00
|
|
|
<field name="context">{'search_default_current':1, 'search_default_partner':1, 'search_default_customer':1, 'search_default_date': time.strftime('%Y-01-01'), 'group_by':[], 'group_by_no_leaf':1,}</field>
|
2010-03-10 09:41:29 +00:00
|
|
|
<field name="search_view_id" ref="view_account_invoice_report_search"/>
|
2010-07-21 08:47:43 +00:00
|
|
|
<field name="help">A tool search lets you know statistics on invoices that match your needs.</field>
|
|
|
|
|
2010-03-10 09:41:29 +00:00
|
|
|
</record>
|
|
|
|
|
2010-05-26 10:45:44 +00:00
|
|
|
<menuitem action="action_account_invoice_report_all" id="menu_action_account_invoice_report_all" parent="account.menu_finance_statistic_report_statement" sequence="0"/>
|
2010-03-10 09:41:29 +00:00
|
|
|
|
2010-06-25 08:46:21 +00:00
|
|
|
<act_window
|
|
|
|
id="act_account_invoice_partner_relation"
|
|
|
|
name="Monthly Turnover"
|
2010-08-26 09:45:13 +00:00
|
|
|
context="{'search_default_partner_id':[active_id], 'search_default_month':1,'search_default_user':1,'group_by_no_leaf':1,'group_by':[]}"
|
2010-06-25 08:46:21 +00:00
|
|
|
res_model="account.invoice.report"
|
|
|
|
src_model="res.partner"/>
|
|
|
|
|
2010-03-10 09:41:29 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|