Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4 Trả lời
22517 Lượt xem

  How can i uinstall module from command line 

i'm using odoo 11 in ubuntu 16.04    

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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';

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất
  • 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()

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 5 22
3189
1
thg 3 21
3203
0
thg 1 21
1869
1
thg 8 20
6145
3
thg 3 19
3305