Open huming0618 opened 7 years ago
在使用基于odoo-docker建立的站点时, 前端报错导致页面异常
caught TypeError: odoo.define is not a function
参考 https://github.com/odoo/odoo/issues/13808
1。在psql下执行 DELETE FROM ir_attachment WHERE url LIKE '/web/content/%';
2。重启docker-odoo镜像
问题解决
根据odoo-dockerdocker-compose.yml配置volumes
version: '2'
services:
web:
image: odoo:10.0
network_mode: "host"
ports:
- "8069:8069"
environment:
- HOST=localhost
- USER=odoo
- PASSWORD=odoo
volumes:
- ./config:/etc/odoo
- ./addons:/mnt/extra-addons