Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
2050 มุมมอง

Hi im currently working on a on premise testing server I just upload a database backup 

and suddenly this happened. I dont have this problem with another database copy.

It happened the same thing some time ago but it fixed alone. Would you help me understand why this happen and how to solve it?

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

I run it manually but how i refresh the view, you mean refresh the tab?

อวตาร
ละทิ้ง

Yes. I meant to refresh the tab. Sorry if that confused you.

Thanks.

คำตอบที่ดีที่สุด

Hi Carlos,

I have also faced this problem many times. Apparently I have come up with an easy solution.

Just create one schedule action with any model. Add the following script in the code section and Run it manually. Then Refresh the view and you will have the images restored, If all images are available at their required locations.

Here is the script you can run. 

menus = env["ir.ui.menu"].search([("web_icon", "!=", False)])

for menu in menus:

    menu.write({"web_icon_data": menu._compute_web_icon_data(menu.web_icon)})

I have used it in versions from 13-17 and will continue to be useful in upcoming versions, Until they change the way of loading image. This way you do not have to upgrade the whole system by with base module.

Thank You.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi Carlos,

This happens with me everytime but you can simply upgrade the base module. 
Go to Apps >> search module name = 'base' and upgrade the module base.

Thanks.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Download database with only master data แก้ไขแล้ว
2
ต.ค. 24
1821
4
ก.ย. 20
5328
0
มี.ค. 18
2726
How to import Backup Database แก้ไขแล้ว
2
ส.ค. 24
21261
2
มิ.ย. 24
2232