美文网首页
odoo Model xxx is declared but c

odoo Model xxx is declared but c

作者: NIGangJun | 来源:发表于2019-12-06 11:07 被阅读0次

    每次升级模块后,后台会有一些warning出现,其中一条

    2019-12-06 02:22:39,888 1 WARNING odoo odoo.modules.loading: Model xxx is declared but cannot be loaded! (Perhaps a module was partially removed or renamed)
    

    需要在数据库中对 ir_model 模块清理对应 xxx 的记录

    select count(*) from ir_model where model = 'xxx';
    -- (1 row)
    -- 执行下面的 delete 语句
    delete from ir_model where model = 'xxx';
    

    相关文章

      网友评论

          本文标题:odoo Model xxx is declared but c

          本文链接:https://www.haomeiwen.com/subject/dkbsgctx.html