[Odoo] command line uninstall module

Transfer from  https://blog.csdn.net/qq_42154836/article/details/94451278 , thanks

During odoo module is installed or updated, for various reasons resulting in system failure or crash (Internal Server Error) can not enter, or module in question can not be uninstalled application system interface, common method is to look at the log, remove the module, the question of amending codes, system restart. But very often they do not often works, it still can not enter the system, sometimes have to rebuild the database, quite a headache. This article describes another way, can be fast, agile, clean solution to this problem.

Odoo shell used to start the system
python odoo-bin shell -c odoo.conf -d db (db your database name)

Enter command line interface, the lookup module to unload
such as: to unloading module base_gengo
Input: gengo the env = [ 'ir.module.module'] Search ([( 'name', 'iLike', 'base_gengo')].
Gengo. button_immediate_uninstall ()

It's done, Perfect Uninstaller, system recovery!
----------------
Disclaimer: This article is CSDN blogger "qq_42154836 'original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement. .
Original link: https: //blog.csdn.net/qq_42154836/article/details/94451278

Guess you like

Origin www.cnblogs.com/waterdroptec/p/11854588.html