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
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
5
Respuestas
12710
Vistas
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 ?
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
InscribirsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
0
dic 24
|
9359 | ||
|
3
sept 24
|
21438 | ||
|
5
dic 24
|
52730 | ||
|
4
jul 24
|
10420 | ||
|
7
ago 23
|
10804 |