Hi, I have a custom module and want to define dashboard when user logs in he should see the dashboard. I want to show it monthly and weekly reports on dashboard.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
5
Replies
12705
Views
Hi,
for example a teacher wants to display in dashboard courses which it is responsible.
Example create dashboards:
<record model="ir.actions.act_window" id="act_my_courses_tree">
<field name="name">My Course Tree</field>
<field name="res_model">openacademy.course</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('responsible_id','=','uid')]</field>
</record>
<record model="ir.ui.view" id="board_openacademy_form">
<field name="name">OpenAcademy Dashboard Form</field>
<field name="model">board.board</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="OpenAcademy Dashboard">
<hpaned>
<child1>
<action string="My Courses" name="%(act_my_courses_tree)d"
colspan="2" />
</child1>
</hpaned>
</form>
</field>
</record>
<record model="ir.actions.act_window" id="openacademy_board">
<field name="name">OpenAcademy Dashboard</field>
<field name="res_model">board.board</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="usage">menu</field>
<field name="view_id" ref="board_openacademy_form" />
</record>
<menuitem id="openacademy_menu" name="OpenAcademy"
action="openacademy_board" />
Excelent example !!!
Thanks it's work for me... +1
Hi, your code will fail on latest odoo 10, can make it compatible with odoo 10 latest code?
How to do same thing in v12 ?
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Dec 24
|
9351 | ||
|
3
Sep 24
|
21426 | ||
|
5
Dec 24
|
52720 | ||
|
4
Jul 24
|
10412 | ||
|
7
Aug 23
|
10795 |