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

  How can i uinstall module from command line 

i'm using odoo 11 in ubuntu 16.04    

아바타
취소
베스트 답변

No, there is no command for uninstall module from the command line.

ref: https://github.com/odoo/odoo/pull/12373, https://github.com/odoo/odoo/issues/15687

아바타
취소
베스트 답변

Hi,

Can you try the following

step-1:       Goto Terminal>Type sudo su postgres

step-2:        Type "psql database_name"

step-3:        update ir_module_module set state='to remove' where name='module_name' and state='installed';

아바타
취소
베스트 답변
  • run ./odoo-bin shell -c xyz.conf -d test_db



  • Search module by using bellow script self.env['ir.module.module'].search([('name','=','module_name')])  then you get the result like "ir.module.module(1060,)"
  • Uninstall module using button_immediate_uninstall() function 

self.env['ir.module.module'].search([('name','=','module_name')]).button_immediate_uninstall()

아바타
취소
베스트 답변

Hi,

There is no option in odoo to uninstall module through command line check 

./odoo-bin --help for possible option in command line
found similar question link
아바타
취소
관련 게시물 답글 화면 활동
0
5월 22
3313
1
3월 21
3316
0
1월 21
1945
1
8월 20
6240
3
3월 19
3469