|
6 | 6 | <Layout className="'o_dashboard h-100'" display="props.display"> |
7 | 7 | <button class="btn btn-primary myBtnChange" t-on-click="openCustomerKanban"> Open customer kanban </button> |
8 | 8 | <button class="btn btn-primary myBtnChange" t-on-click="openActivity"> Leads </button> |
9 | | - <div style="margin-left: 1rem;"> |
10 | | - <DashboardItem size="2"> Average quantity sold is : |
11 | | - <span style="color: green; font-weight: bolder; font-size: 27px;"> |
12 | | - <t t-esc="result.average_quantity"/> |
13 | | - </span> |
| 9 | + <div style="margin-left: 1rem;display: flex;"> |
| 10 | + <DashboardItem size="2"> |
| 11 | + <div style="margin-top: 30%"> |
| 12 | + <div style="font-size: 200%; text-align: center;"> |
| 13 | + Average quantity sold is : |
| 14 | + </div> |
| 15 | + <div style="color: green; font-weight: bolder; font-size: 55px; text-align: center;"> |
| 16 | + <t t-esc="result.average_quantity"/> |
| 17 | + </div> |
| 18 | + </div> |
14 | 19 | </DashboardItem> |
15 | | - <DashboardItem size="2"> Number of new orders this month : |
16 | | - <span style="color: green; font-weight: bolder; font-size: 27px;"> |
17 | | - <t t-esc="result.nb_new_orders"/> |
18 | | - </span> |
| 20 | + <DashboardItem size="2"> |
| 21 | + <div style="margin-top: 30%"> |
| 22 | + <div style="font-size: 200%; text-align: center;"> |
| 23 | + Number of new orders this month : |
| 24 | + </div> |
| 25 | + <div style="color: green; font-weight: bolder; font-size: 55px; text-align: center;"> |
| 26 | + <t t-esc="result.nb_new_orders"/> |
| 27 | + </div> |
| 28 | + </div> |
19 | 29 | </DashboardItem> |
20 | | - <DashboardItem size="2"> Total amount of new orders this month : |
21 | | - <span style="color: green; font-weight: bolder; font-size: 27px;"> |
22 | | - <t t-esc="result.total_amount"/> |
23 | | - </span> |
| 30 | + <DashboardItem size="2"> |
| 31 | + <div style="margin-top: 30%"> |
| 32 | + <div style="font-size: 200%; text-align: center;"> |
| 33 | + Total amount of new orders this month : |
| 34 | + </div> |
| 35 | + <div style="color: green; font-weight: bolder; font-size: 55px; text-align: center;"> |
| 36 | + <t t-esc="result.total_amount"/> |
| 37 | + </div> |
| 38 | + </div> |
24 | 39 | </DashboardItem> |
25 | | - <DashboardItem size="2"> Number of cancelled orders this month : |
26 | | - <span style="color: green; font-weight: bolder; font-size: 27px;"> |
27 | | - <t t-esc="result.nb_cancelled_orders"/> |
28 | | - </span> |
| 40 | + <DashboardItem size="2"> |
| 41 | + <div style="margin-top: 30%"> |
| 42 | + <div style="font-size: 200%; text-align: center;"> |
| 43 | + Number of cancelled orders this month : |
| 44 | + </div> |
| 45 | + <div style="color: green; font-weight: bolder; font-size: 55px; text-align: center;"> |
| 46 | + <t t-esc="result.nb_cancelled_orders"/> |
| 47 | + </div> |
| 48 | + </div> |
29 | 49 | </DashboardItem> |
30 | | - <DashboardItem size="2"> Average time for an order : |
31 | | - <span style="color: green; font-weight: bolder; font-size: 27px;"> |
32 | | - <t t-esc="result.average_time"/> |
33 | | - </span> |
| 50 | + <DashboardItem size="2"> |
| 51 | + <div style="margin-top: 30%"> |
| 52 | + <div style="font-size: 200%; text-align: center;"> |
| 53 | + Average time for an order : |
| 54 | + </div> |
| 55 | + <div style="color: green; font-weight: bolder; font-size: 55px; text-align: center;"> |
| 56 | + <t t-esc="result.average_time"/> |
| 57 | + </div> |
| 58 | + </div> |
| 59 | + </DashboardItem> |
| 60 | + |
| 61 | + <DashboardItem size="2"> |
| 62 | + Shirt orders by size |
| 63 | + <PieChart data="result['orders_by_size']" label="'Shirt orders by size'"/> |
34 | 64 | </DashboardItem> |
35 | 65 | </div> |
36 | 66 | </Layout> |
|
0 commit comments