
在开发测试不同版本odoo时,总会遇到在同一浏览器下运行出错的状况.虽然可以把不同版本分属不同的端口,但是登录标识会入写用户本地浏览器cookie,由于cookie只匹配域名及路径但是不区分端口,
所以同一个浏览器只能固定运行某个odoo版本,否则就会产生意想不到的错误,无法进入系统.
解决方案一:固定用不同的浏览器(IE/Edge/Google Chrome/Mozilla Firefox)运行不同的版本的odoo
解决方案二:用同一个浏览器运行不同的版本的odoo,在每次运行不同版本之前清楚一下cookie.
解决方案三:修改hosts 文件 让127.0.0.1 对应不同的域名,在同一浏览器中用不同域名运行不同版本的odoo
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
127.0.0.1 localhost
127.0.0.1 openerp7
127.0.0.1 odoo8
127.0.0.1 odoo9
127.0.0.1 odooErp
127.0.0.1 odoo10
# ::1 localhost
之后就可以用http://域名:端口号 进入系统了
如:http://odoo9:8069
试试看,希望对你有帮助.