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
- Účtovníctvo
- Sklady
- PoS
- Projektové riadenie
- MRP
This question has been flagged
5
Replies
13167
Zobrazenia
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!
Registrácia| Related Posts | Replies | Zobrazenia | Aktivita | |
|---|---|---|---|---|
|
|
1
okt 25
|
5665 | ||
|
|
0
dec 24
|
10580 | ||
|
|
3
sep 24
|
23077 | ||
|
|
5
dec 24
|
55267 | ||
|
|
4
júl 24
|
11908 |