Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
2699 Lượt xem

I need make a dashboard but i need put photo of user but i dont know how make it

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

1. Fetch the image data

2. render the qweb with fetched data

3. use it in qweb

<img class="media-object dp img-circle"
t-att-src="'data:image/png;base64,'+widget.employee_data.image_1920"
style="width: 100px;height:100px;"/>
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi.

Please checkout the coding of this module available for free in odoo apps, which adds a hr dashboard, the employee image is shown in the dashboard, so you can check and see how the code is done: https://apps.odoo.com/apps/modules/13.0/hrms_dashboard/


Also for creating dashboard using the board module, see: How To Create a Dashboard In Odoo


Thanks

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 25
1716
1
thg 5 25
1716
1
thg 4 25
2286
1
thg 2 25
1569
0
thg 10 24
1323