Skip to content

Commit b858e8e

Browse files
committed
[IMP] awesome_owl: add counter, card components and todo lists
-Made estate module user-friendly UI -Added counter and card component and display in awesome owl module -Added todo list in awesome_owl
1 parent 0f8a0c9 commit b858e8e

File tree

2 files changed

+3
-43
lines changed

2 files changed

+3
-43
lines changed
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
import { Component, onWillStart } from "@odoo/owl";
1+
import { Component } from "@odoo/owl";
22
import { registry } from "@web/core/registry";
3-
import { Layout } from "@web/search/layout";
4-
import { useService } from "@web/core/utils/hooks";
5-
import { DashboardItem } from "./dashboard_item/dashboard_item";
63

74
class AwesomeDashboard extends Component {
85
static template = "awesome_dashboard.AwesomeDashboard";
96
}
107

11-
registry.category("actions").add("awesome_dashboard.dashboard", AwesomeDashboard);
8+
registry.category("actions").add("awesome_dashboard.dashboard", AwesomeDashboard);

awesome_dashboard/static/src/dashboard.xml

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,7 @@
22
<templates xml:space="preserve">
33

44
<t t-name="awesome_dashboard.AwesomeDashboard">
5-
<Layout display="display" className="'o_dashboard h-100'">
6-
<t t-set-slot="layout-buttons">
7-
<button class="btn btn-primary" t-on-click="openCustomerView">Customers</button>
8-
<button class="btn btn-primary" t-on-click="openLeads">Leads</button>
9-
</t>
10-
<div class="d-flex flex-wrap">
11-
<DashboardItem>
12-
Average amount of t-shirt by order this month
13-
<div class="fs-1 fw-bold text-success text-center">
14-
<t t-esc="statistics.average_quantity"/>
15-
</div>
16-
</DashboardItem>
17-
<DashboardItem>
18-
Average time for an order to go from 'new' to 'sent' or 'cancelled'
19-
<div class="fs-1 fw-bold text-success text-center">
20-
<t t-esc="statistics.average_time"/>
21-
</div>
22-
</DashboardItem>
23-
<DashboardItem>
24-
Number of new orders this month
25-
<div class="fs-1 fw-bold text-success text-center">
26-
<t t-esc="statistics.nb_new_orders"/>
27-
</div>
28-
</DashboardItem>
29-
<DashboardItem>
30-
Number of cancelled orders this month
31-
<div class="fs-1 fw-bold text-success text-center">
32-
<t t-esc="statistics.nb_cancelled_orders"/>
33-
</div>
34-
</DashboardItem>
35-
<DashboardItem>
36-
Total amount of new orders this month
37-
<div class="fs-1 fw-bold text-success text-center">
38-
<t t-esc="statistics.total_amount"/>
39-
</div>
40-
</DashboardItem>
41-
</div>
42-
</Layout>
5+
hello dashboard
436
</t>
447

458
</templates>

0 commit comments

Comments
 (0)