Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4 ตอบกลับ
22629 มุมมอง

  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
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ค. 22
3234
Odoo 11 Hide EDIT & DELETE แก้ไขแล้ว
1
มี.ค. 21
3247
0
ม.ค. 21
1904
Two views for one model - Odoo 11 แก้ไขแล้ว
1
ส.ค. 20
6182
Odoo Date Total In Version 11 แก้ไขแล้ว
3
มี.ค. 19
3373