| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<record id="sale_report_view_search_website" model="ir.ui.view"> |
| 4 |
<field name="name">sale.report.search</field> |
| 5 |
<field name="model">sale.report</field> |
| 6 |
<field name="arch" type="xml"> |
| 7 |
<search string="Sales"> |
| 8 |
<field name="website_id" groups="website.group_multi_website"/> |
| 9 |
<field name="product_id"/> |
| 10 |
<field name="categ_id"/> |
| 11 |
<field name="partner_id"/> |
| 12 |
<field name="country_id"/> |
| 13 |
<field name="company_id" groups="base.group_multi_company"/> |
| 14 |
<filter string="Confirmed Orders" name="confirmed" domain="[('state', '=', 'sale')]"/> |
| 15 |
<separator/> |
| 16 |
<filter name="filter_date" date="date" default_period="month"/> |
| 17 |
<group> |
| 18 |
<filter string="Website" name="groupby_website" context="{'group_by':'website_id'}" groups="website.group_multi_website"/> |
| 19 |
<filter string="Product" name="groupby_product" context="{'group_by':'product_id'}"/> |
| 20 |
<filter string="Product Category" name="groupby_product_category" context="{'group_by':'categ_id'}"/> |
| 21 |
<filter string="Customer" name="groupby_customer" context="{'group_by':'partner_id'}"/> |
| 22 |
<filter string="Customer Country" name="groupby_country" context="{'group_by':'country_id'}"/> |
| 23 |
<filter string="Status" name="groupby_status" context="{'group_by':'state'}"/> |
| 24 |
<filter |
| 25 |
string="eCommerce Category" |
| 26 |
name="groupby_product_public_category" |
| 27 |
context="{'group_by': 'public_categ_ids'}" |
| 28 |
/> |
| 29 |
<separator orientation="vertical"/> |
| 30 |
<filter string="Order Date" name="groupby_order_date" context="{'group_by':'date'}"/> |
| 31 |
|
| 32 |
<filter string="Last Week" invisible="1" name="week" domain="[('date','>=', 'today -7d')]"/> |
| 33 |
<filter string="Last Month" invisible="1" name="month" domain="[('date','>=', 'today -30d')]"/> |
| 34 |
<filter string="Last Year" invisible="1" name="year" domain="[('date','>=', 'today -365d')]"/> |
| 35 |
</group> |
| 36 |
</search> |
| 37 |
</field> |
| 38 |
</record> |
| 39 |
|
| 40 |
<record id="sale_report_view_pivot_website" model="ir.ui.view"> |
| 41 |
<field name="name">sale.report.view.pivot.website</field> |
| 42 |
<field name="model">sale.report</field> |
| 43 |
<field name="arch" type="xml"> |
| 44 |
<pivot string="Sales Analysis" sample="1"> |
| 45 |
<field name="date" type="row"/> |
| 46 |
<field name="state" type="col"/> |
| 47 |
<field name="price_subtotal" type="measure"/> |
| 48 |
</pivot> |
| 49 |
</field> |
| 50 |
</record> |
| 51 |
|
| 52 |
<record id="sale_report_view_graph_website" model="ir.ui.view"> |
| 53 |
<field name="name">sale.report.view.graph.website</field> |
| 54 |
<field name="model">sale.report</field> |
| 55 |
<field name="arch" type="xml"> |
| 56 |
<graph string="Sale Analysis" sample="1"> |
| 57 |
<field name="date"/> |
| 58 |
<field name="price_subtotal" type='measure'/> |
| 59 |
</graph> |
| 60 |
</field> |
| 61 |
</record> |
| 62 |
|
| 63 |
<record id="sale_report_view_tree" model="ir.ui.view"> |
| 64 |
<field name="name">sale.report.view.list.inherit.website.sale</field> |
| 65 |
<field name="model">sale.report</field> |
| 66 |
<field name="inherit_id" ref="sale.sale_report_view_tree"/> |
| 67 |
<field name="arch" type="xml"> |
| 68 |
<field name="order_reference" position="after"> |
| 69 |
<field name="website_id" optional="hide"/> |
| 70 |
<field name="public_categ_ids" optional="hide"/> |
| 71 |
</field> |
| 72 |
</field> |
| 73 |
</record> |
| 74 |
|
| 75 |
<record id="sale_report_action_dashboard" model="ir.actions.act_window"> |
| 76 |
<field name="name">Online Sales Analysis</field> |
| 77 |
<field name="res_model">sale.report</field> |
| 78 |
<field name="path">online-sales-analysis</field> |
| 79 |
<field name="view_mode">pivot,graph</field> |
| 80 |
<field name="domain">[('website_id', '!=', False)]</field> |
| 81 |
<field name="context">{'search_default_confirmed': 1}</field> |
| 82 |
<field name="search_view_id" ref="sale_report_view_search_website"/> |
| 83 |
<field name="help" type="html"> |
| 84 |
<p class="o_view_nocontent_empty_folder"> |
| 85 |
You don't have any order from the website |
| 86 |
</p> |
| 87 |
</field> |
| 88 |
</record> |
| 89 |
|
| 90 |
<record id="sale_report_action_view_pivot_website" model="ir.actions.act_window.view"> |
| 91 |
<field name="sequence" eval="1"/> |
| 92 |
<field name="view_mode">pivot</field> |
| 93 |
<field name="view_id" ref="sale_report_view_pivot_website"/> |
| 94 |
<field name="act_window_id" ref="sale_report_action_dashboard"/> |
| 95 |
</record> |
| 96 |
|
| 97 |
<record id="sale_report_action_view_graph_website" model="ir.actions.act_window.view"> |
| 98 |
<field name="sequence" eval="1"/> |
| 99 |
<field name="view_mode">graph</field> |
| 100 |
<field name="view_id" ref="sale_report_view_graph_website"/> |
| 101 |
<field name="act_window_id" ref="sale_report_action_dashboard"/> |
| 102 |
</record> |
| 103 |
|
| 104 |
<record id="sale_report_action_carts" model="ir.actions.act_window"> |
| 105 |
<field name="name">Sales</field> |
| 106 |
<field name="res_model">sale.report</field> |
| 107 |
<field name="view_mode">pivot,graph</field> |
| 108 |
<field name="domain">[('website_id', '!=', False)]</field> |
| 109 |
<field name="search_view_id" ref="sale_report_view_search_website"/> |
| 110 |
<field name="help" type="html"> |
| 111 |
<p class="o_view_nocontent_empty_folder"> |
| 112 |
You don't have any order from the website |
| 113 |
</p> |
| 114 |
</field> |
| 115 |
</record> |
| 116 |
|
| 117 |
<record id="sale_report_action_view_pivot_carts" model="ir.actions.act_window.view"> |
| 118 |
<field name="sequence" eval="1"/> |
| 119 |
<field name="view_mode">pivot</field> |
| 120 |
<field name="view_id" ref="sale_report_view_pivot_website"/> |
| 121 |
<field name="act_window_id" ref="sale_report_action_carts"/> |
| 122 |
</record> |
| 123 |
|
| 124 |
<record id="sale_report_action_view_graph_carts" model="ir.actions.act_window.view"> |
| 125 |
<field name="sequence" eval="1"/> |
| 126 |
<field name="view_mode">graph</field> |
| 127 |
<field name="view_id" ref="sale_report_view_graph_website"/> |
| 128 |
<field name="act_window_id" ref="sale_report_action_carts"/> |
| 129 |
</record> |
| 130 |
</odoo> |