Odoo Help


how to define custom dashboards for custom modules

on 5/20/13, 3:55 AM 4,302 views

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.

On 5/20/13, 6:50 AM


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 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">
                            <action string="My Courses" name="%(act_my_courses_tree)d"
                                colspan="2" />                          

<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" />

<menuitem id="openacademy_menu" name="OpenAcademy"
            action="openacademy_board" />

Excelent example !!!

Jose M. González
on 11/20/15, 5:01 AM

Thanks it's work for me... +1

Ankit H Gandhi(AHG)
on 4/6/16, 10:00 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 5/20/13, 3:55 AM
Seen: 4302 times
Last updated: 8/31/15, 3:35 AM