콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
2082 화면

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.

아바타
취소
관련 게시물 답글 화면 활동
2
10월 24
1871
4
9월 20
5362
0
3월 18
2760
2
8월 24
21304
2
6월 24
2287