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

During the upgrade process on branch BrStaging, there are errors in the log panel. Some obsolete custom Modules or Views are the cause of these errors. To disable or uninstall them, we have to use sql queries because we cannot enter odoo which cannot start, using in Odoo-sh> SHELL-Tab, the shell command : psql:

  • To disable a view

    UPDATE public.ir_ui_view SET active = false WHERE id = 10381;
    
  • To disable/unsinstall a module

    UPDATE ir_module_module set state='to remove'
    WHERE name in ('my_custom_module') and state='installed';
    
  • ...have tried that request too:

    UPDATE ir_module_module set state='unistallable'
    WHERE name in ('my_custom_module') and state='installed';
    

...But it doesn t work ! How to disable a view and uninstall a module during the upgrade process from v13 to v15 ??


아바타
취소
베스트 답변

Hello, 

You can try one way with the odoo shell. First get the module id which you want to uninstall from the psql . Now go to the shell and create a browse record of that module and call "button_immediate_uninstall" method using that module .
Like :

             model = self.env['ir.module.module'].browse(id_of_your_module)

             model.button_immediate_uninstall()

Please vote the answer if its help you

 

아바타
취소
베스트 답변

Hi , do you found the solution? I have the same problem. =S

아바타
취소

Hello, 

You can try one way with the odoo shell. First get the module id which you want to uninstall from the psql . Now go to the shell and create a browse record of that module and call "button_immediate_uninstall" method using that module .
Like :

model = self.env['ir.module.module'].browse(id_of_your_module)

model.button_immediate_uninstall()

Please vote the answer if its help you

관련 게시물 답글 화면 활동
1
12월 22
2691
1
9월 22
1219
2
3월 22
11922
0
11월 21
1333
2
11월 21
3194