跳至內容
選單
此問題已被標幟
4 回覆
22627 瀏覽次數

  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
3234
1
3月 21
3247
0
1月 21
1904
1
8月 20
6182
3
3月 19
3373