odoo 卸载模块不成功的方法
连接数据库,找到这两张表:
第一步:
select * from ir_cron where id=5;
执行:update ir_cron set active=true where id=5;
第二步:
找到与自己有关模块的信息 (我的模块名名train)
select * from ir_model_relation where name like ‘%train%’;
然后清空数据:
select * from ir_model_relation where name like ‘%train%’;
delete from ir_model_relation where name=‘train_course_train_courseware_rel’;
delete from ir_model_relation where name=‘train_trainner’;
delete from ir_model_relation where name=‘train_lecturer’;
第三步:
先卸载模块,然后删除