Odoo Help

Welcome!

This community 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.

1

how to define custom dashboards for custom modules

v7
By
548
on 5/20/13, 3:55 AM 2,952 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.

4

Borni DHIFI

--Borni DHIFI--
5102
| 6 8 9
Tunis, Tunisia
--Borni DHIFI--

Techno Functional Consultant Odoo(OpenERP) 

http://www.linkedin.com/in/borni

Skype : dhifi.borni

Borni DHIFI
On 5/20/13, 6:50 AM

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 !!!

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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