blob: 61b2ad79d0e38b62fd51e9bfe16d639b021ac53b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
|
<?xml version="1.0" encoding="UTF-8"?>
<templates>
<t t-extend="website.dashboard_header">
<t t-jquery="div.o_dashboard_common" t-operation="append">
<div class="col-12 o_box" t-if="widget.dashboards_data.sales.summary.order_unpaid_count || widget.dashboards_data.sales.summary.order_to_invoice_count || widget.dashboards_data.sales.summary.payment_to_capture_count || widget.dashboards_data.sales.summary.order_carts_abandoned_count">
<div t-if="widget.dashboards_data.sales.summary.order_unpaid_count" class="o_inner_box o_dashboard_action" title="Confirm orders when you get paid." name="website_sale.action_unpaid_orders_ecommerce">
<div class="o_highlight"><t t-esc="widget.dashboards_data.sales.summary.order_unpaid_count"/></div>
Unpaid Orders
</div>
<div t-if="widget.dashboards_data.sales.summary.order_to_invoice_count" class="o_inner_box o_dashboard_action" title="Generate an invoice from orders ready for invoicing." name="website_sale.sale_order_action_to_invoice">
<div class="o_highlight"><t t-esc="widget.dashboards_data.sales.summary.order_to_invoice_count"/></div>
Orders to Invoice
</div>
<div t-if="widget.dashboards_data.sales.summary.payment_to_capture_count" class="o_inner_box o_dashboard_action" title="Capture order payments when the delivery is completed." name="website_sale.payment_transaction_action_payments_to_capture">
<div class="o_highlight"><t t-esc="widget.dashboards_data.sales.summary.payment_to_capture_count"/></div>
Payments to Capture
</div>
<div t-if="widget.dashboards_data.sales.summary.order_carts_abandoned_count" class="o_inner_box o_dashboard_action" title="Send a recovery email to visitors who haven't completed their order." name="website_sale.action_view_abandoned_tree">
<div class="o_highlight"><t t-esc="widget.dashboards_data.sales.summary.order_carts_abandoned_count"/></div>
Abandoned Carts
</div>
</div>
</t>
</t>
<t t-extend="website.dashboard_content">
<t t-jquery="div.o_website_dashboard_content" t-operation="prepend">
<div t-if="widget.groups.sale_salesman" class="row o_dashboard_sales">
<div class="col-12 row o_box">
<t t-if="widget.dashboards_data.sales.summary.order_count">
<h2 class="col-lg-7 col-12">
<t t-if="widget.date_range=='week'">
Sales Since Last Week
</t>
<t t-elif="widget.date_range=='month'">
Sales Since Last Month
</t>
<t t-elif="widget.date_range=='year'">
Sales Since Last Year
</t>
<t t-else="">Sales</t>
</h2>
<h4 class='col-lg-5 col-12'>AT A GLANCE</h4>
<div class="col-lg-7 col-12">
<div class="o_graph_sales" data-type="sales"/>
</div>
<div class="col-lg-5 col-12">
<t t-call="website_sale.products_table"/>
</div>
</t>
<t t-if="! widget.dashboards_data.sales.summary.order_count">
<t t-if="widget.date_range=='week'">
<h2>Sales Since Last Week</h2>
</t>
<t t-elif="widget.date_range=='month'">
<h2>Sales Since Last Month</h2>
</t>
<t t-elif="widget.date_range=='year'">
<h2>Sales Since Last Year</h2>
</t>
<t t-else=""><h2>Sales</h2></t>
<div class="col-lg-12 col-12">
<div class="o_demo_background">
</div>
<div class="o_demo_message">
<h3>There is no recent confirmed order.</h3>
</div>
</div>
</t>
</div>
</div>
</t>
</t>
<t t-name="website_sale.products_table">
<div class="row">
<a href="#" class="col-md-4 o_dashboard_action" name="website_sale.sale_report_action_dashboard">
<div class="o_link_enable" title="Orders">
<div class="o_highlight">
<t t-esc="widget.dashboards_data.sales.summary.order_count"/>
</div>
Orders
</div>
</a>
<a href="#" class="col-md-4 o_dashboard_action" name="website_sale.sale_report_action_dashboard">
<div class="o_link_enable" title="Untaxed Total Sold">
<div class="o_highlight">
<t t-esc="widget.render_monetary_field(widget.dashboards_data.sales.summary.total_sold, widget.data.currency)"/>
</div>
Sold
</div>
</a>
<a href="#" class="col-md-4 o_dashboard_action" name="website_sale.sale_report_action_carts">
<div class="o_link_enable o_invisible_border" title="Carts">
<div class="o_highlight"><t t-esc="widget.dashboards_data.sales.summary.order_carts_count"/></div>
Carts
</div>
</a>
<div class="col-md-4 o_link_disable" title="Orders/Day">
<div class="o_highlight"><t t-esc="widget.dashboards_data.sales.summary.order_per_day_ratio"/></div>
Orders/Day
</div>
<div class="col-md-4 o_link_disable" title="Average Order">
<div class="o_highlight"><t t-esc="widget.render_monetary_field(widget.dashboards_data.sales.summary.order_sold_ratio, widget.data.currency)"/></div>
Average Order
</div>
<div class="col-md-4 o_link_disable o_invisible_border" title="Conversion">
<div class="o_highlight"><t t-esc="widget.format_number(widget.dashboards_data.sales.summary.order_convertion_pctg, 'float', [3, 2], '%')"/></div>
Conversion
</div>
</div>
<div class="col-lg-12 col-12 o_top_margin">
<div class="row">
<div class="col-lg-12 col-12">
<h4>Best Sellers</h4>
<table class="table table-responsive table-hover">
<tr>
<th>Product</th>
<th>Quantity</th>
<th>Sold</th>
</tr>
<tr class="o_product_template" t-foreach="widget.dashboards_data.sales.best_sellers" t-as="product" t-att-data-product-id="product.id">
<td><t t-esc="product.name"/></td>
<td><t t-esc="product.qty"/></td>
<td><t t-esc="widget.render_monetary_field(product.sales, widget.data.currency)"/></td>
</tr>
</table>
</div>
</div>
</div>
</t>
<t t-extend="website_sale.products_table">
<t t-jquery=".o_top_margin .row .col-12" t-operation="attributes">
<attribute name="class" value="col-lg-6 col-12" />
</t>
<t t-jquery=".o_top_margin .row" t-operation="append">
<div class="col-lg-6 col-12 o_dashboard_utms">
<div>
<h4 class="float-left">REVENUE BY</h4>
<t t-call="website_sale.LinkTrackersDropDown"/>
</div>
<div class="o_utm_no_data_img">
<img src="website_sale/static/src/img/website_sale_chart_demo.png" alt="There isn't any UTM tag detected in orders" class="utm_chart_image image-responsive mt8"/>
</div>
<div class="o_utm_data_graph"/>
</div>
</t>
</t>
<t t-name="website_sale.LinkTrackersDropDown">
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle utm_dropdown ml4" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"><span class="utm_button_name">Campaigns</span>
</button>
<div class="dropdown-menu" role="menu" aria-labelledby="utm_dropdown">
<a name="campaign_id" class="dropdown-item js_utm_selector" role="menuitem">Campaigns</a>
<a name="medium_id" class="dropdown-item js_utm_selector" role="menuitem">Medium</a>
<a name="source_id" class="dropdown-item js_utm_selector" role="menuitem">Sources</a>
</div>
</div>
</t>
</templates>
|