跳至內容
選單
此問題已被標幟
2 回覆
2716 瀏覽次數

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

頭像
捨棄
最佳答案

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;"/>
頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
7月 25
1734
1
5月 25
1741
1
4月 25
2300
1
2月 25
1577
0
10月 24
1359