【odoo】FileNotFoundError: [Errno 2] No such file or directory:

由于在数据库中的ir_attachment对象中的文件与实际不符,

可以通过delete from ir_attachment where url like "/web/content/%"解决

但如果使用的是docker,那么postgres没有暴露出来

可通过odoo shell -d 数据库名称,然后查询ir.attachment对象,unlink相关内容,然后env.cr.commit()即可。

猜你喜欢

转载自www.cnblogs.com/xushuotec/p/12906398.html
今日推荐