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
- Kế toán
- Tồn kho
- PoS
- Dự án
- MRP
Câu hỏi này đã bị gắn cờ
5
Trả lời
13149
Lượt xem
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 ?
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký| Bài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
|---|---|---|---|---|
|
|
1
thg 10 25
|
5643 | ||
|
|
0
thg 12 24
|
10566 | ||
|
|
3
thg 9 24
|
23061 | ||
|
|
5
thg 12 24
|
55221 | ||
|
|
4
thg 7 24
|
11880 |