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
- Kirjanpito
- Varastointi
- PoS
- Projekti
- MRP
Tämä kysymys on merkitty
5
Vastaukset
13150
Näkymät
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 ?
Nautitko keskustelusta? Älä vain lue, vaan osallistu!
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
Rekisteröidy| Aiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
|---|---|---|---|---|
|
|
1
lokak. 25
|
5643 | ||
|
|
0
jouluk. 24
|
10566 | ||
|
|
3
syysk. 24
|
23061 | ||
|
How to activate the Technical Features?
Ratkaistu
|
|
5
jouluk. 24
|
55221 | |
|
|
4
heinäk. 24
|
11880 |