huming0618 / ds-shop

0 stars 0 forks source link

建立odoo系统 #6

Open huming0618 opened 7 years ago

huming0618 commented 7 years ago
huming0618 commented 7 years ago

产品信息

huming0618 commented 7 years ago

销售

huming0618 commented 7 years ago

库存

huming0618 commented 7 years ago

定价

huming0618 commented 7 years ago

API

huming0618 commented 7 years ago

页面问题 odoo.define is not a function

在使用基于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镜像

问题解决

huming0618 commented 7 years ago

根据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