实践环境

win10

Python 3.6.2

odoo_14.0.latest.tar.gz
下载地址:

https://download.odoocdn.com/download/14/src?payload=MTY3MDg1MTM3Ni4xNC5zcmMud0tZRWZLX2I5UVF0Tm51UUVqT1lQVE5PbGRyYW5zWTc4dHhuOWxfclM4UT0%3D

引用页面:https://www.odoo.com/zh_TW/page/download

Microsoft Visual C++ Build Tool

下载地址:

https://download.microsoft.com/download/5/f/7/5f7acaeb-8363-451f-9425-68a90f98b238/visualcppbuildtools_full.exe

postgresql-12.13-1-windows-x64.exe

下载地址:
https://get.enterprisedb.com/postgresql/postgresql-12.13-1-windows-x64.exe

wkhtmltox-0.12.5-1.msvc2015-win64.exe

引用页面:https://wkhtmltopdf.org/downloads.html

操作步骤

下载上述相关软件

安装Python

安装后将Python安装路径(本例中安装路径为D:\Program Files (x86)\python36\Scripts\,D:\Program Files (x86)\python36\)添加到PATH系统环境变量、用户环境变量

创建Python虚拟运行环境

主要是和其它项目开发环境进行隔离,具体操作过程可参考文章"virtualenv虚拟环境配置与使用",

安装Microsoft Visual C++ Build Tools

说明:安装odoo依赖时,可能会提示要求Microsoft Visual C++ Build Tool,提示

Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools"

,此时则需要停下来,先安装编译工具,然后再试,否则可以跳过这个步骤。

参考文档 "解决安装软件包提示Unable to find vcvarsall.bat的问题.md"

安装odoo依赖

解压下载后的odoo_14.0.latest.tar,并对解压结果目录中dist目录下的odoo-14.0.post20221212.tar进行二次解压,得到odoo-14.0.post20221212目录文件,将其重命名odoo14,作为项目根目录

修改odoo14/requirements.txt 文件,将

gevent==1.4.0 ; sys_platform == 'win32' and python_version < '3.7'
greenlet==0.4.10 ; python_version < '3.7'

改成

gevent==22.10.2 ; sys_platform == 'win32' and python_version < '3.7'
greenlet==2.0.1 ; python_version < '3.7'

以解决依赖冲突问题

依次、轮换执行以下安装命令(注意:在虚拟运行环境中执行

pip install -r requirements.txt --trusted-host pypi.org --trusted-host files.pythonhosted.org
pip install -r requirements.txt -i https://pypi.doubanio.com/simple --trusted-host pypi.doubanio.com
pip install -r requirements.txt -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com

说明:安装过程中会报找不到依赖包问题,此时可以尝试通过切换包源来解决找不到包的问题。

安装PostgreSQL

exe安装比较简单,中途按要求选择合理的安装路径数据存储路径,按要求输入并记录postgres用户密码,其它保持默认,下一步...下一步即可。

安装结束时会提示安装Stack Builder,如果不需要,可以不勾选,不安装。

创建PostgreSQL登录/组角色(Login/Group Roles)

安装完成,进入%PostgreSQL_INSTALL_HOME%\pgAdmin 4\bin目录下,双击 pgAdmin4.exe打开PostgreSQL管理界面,双击默认服务,PostgreSQL 12

Odoo 基于Win10搭建基于Win10搭建odoo14开发环境搭建

Odoo 基于Win10搭建基于Win10搭建odoo14开发环境搭建

Odoo 基于Win10搭建基于Win10搭建odoo14开发环境搭建

最后点击 Save 保存

安装rtlcss

说明:这个步骤是官方文档上给出的,笔者未实践。

对于具有从右到左界面的语言(例如阿拉伯语或希伯来语),需要包“rtlcss”:

  1. 下载并安装 nodejs。

  2. 安装 rtlcss

    C:\> npm install -g rtlcss
    
  3. 添加“rtlcss.cmd”所在的文件夹(通常为:“C:\Users<user>\AppData\Roaming\npm\”)到系统系统环境变量“PATH”

安装wkhtmltopdf

安装后,将wkhtmltopdf.exe所在目录(例中"D:\Program Files\wkhtmltopdf\bin")添加到系统环境变量PATH中。

如果安装配置没问题,则启动时可以看到类似如下日志:

2022-12-13 11:20:24,989 21476 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at D:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe

否则,会看到类似如下日志:

2022-12-13 07:19:39,280 31332 INFO ? odoo.addons.base.models.ir_actions_report: You need Wkhtmltopdf to print a pdf version of the reports.

测试运行

启动

复制上述odoo14\setup\odoo文件为odoo-bin(本质为一个py文件),并移动到setup同级目录下,即例中的odoo14目录下

虚拟运行环境下,输入以下命令后回车,可以看到类似如下输出

python odoo-bin --addons-path=./odoo/addons -r myodoo -w test123 -d odoo

或者将部分命令行参数放到配置文件中

python odoo-bin -c odoo.conf

其中,odoo.conf为手动创建的配置文件,位于odoo14目录下,内容如下:

[options]
addons_path = odoo/addons
db_name = odoo
db_host = localhost
db_user = myodoo
db_password = test123
db_port = 5432
常见命令行参数说明

小技巧

配置文件简介

大多数命令行选项可通过配置文件指定。大多数时候,将命令行参数名称前缀-移除,其它-替换_即为对应的配置文件参数名称。比如 --db-template 转换为db_template

但是也有特例:

默认配置文件位于 *$HOME*/.odoorc,可以通过 --config指定配置文件。另外使用-s/--save参数将当前配置回写到当前配置文件中。

(oodo14) D:\codePojects\odoo14>python odoo-bin -r myodoo -w test123 --addons-path=./odoo/addons -d odoo
2022-12-13 07:19:23,208 31332 INFO ? odoo: Odoo version 14.0-20221212
2022-12-13 07:19:23,211 31332 INFO ? odoo: addons paths: ['D:\\codePojects\\odoo14\\odoo\\addons', 'c:\\users\\01367599\\appdata\\local\\openerp s.a\\odoo\\addons\\14.0', 'd:\\codepojects\\odoo14\\odoo\\addons']
2022-12-13 07:19:23,211 31332 INFO ? odoo: database: myodoo@default:default
2022-12-13 11:20:24,989 21476 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at D:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe 
2022-12-13 07:20:29,861 31332 INFO ? odoo.service.server: HTTP service (werkzeug) running on SF0001367599LA.sf.com:8069 
2022-12-13 07:20:31,467 31332 INFO ? odoo.modules.loading: init db
2022-12-13 07:20:43,433 31332 INFO odoo odoo.modules.loading: loading 1 modules...
2022-12-13 07:20:59,492 31332 INFO odoo odoo.modules.loading: Loading module base (1/1)
2022-12-13 07:20:59,634 31332 INFO odoo odoo.modules.registry: module base: creating or updating database tables
2022-12-13 07:21:08,242 31332 INFO odoo odoo.models: Storing computed values of ir.module.module.menus_by_module
2022-12-13 07:21:08,274 31332 INFO odoo odoo.models: Storing computed values of ir.module.module.reports_by_module
2022-12-13 07:21:08,276 31332 INFO odoo odoo.models: Storing computed values of ir.module.module.views_by_module
2022-12-13 07:21:08,294 31332 INFO odoo odoo.models: Storing computed values of res.partner.display_name
2022-12-13 07:21:08,309 31332 INFO odoo odoo.models: Storing computed values of res.partner.partner_share
2022-12-13 07:21:08,310 31332 INFO odoo odoo.models: Storing computed values of res.partner.commercial_partner_id
2022-12-13 07:21:08,331 31332 INFO odoo odoo.models: Storing computed values of res.partner.commercial_company_name
2022-12-13 07:21:08,340 31332 INFO odoo odoo.models: Storing computed values of res.currency.decimal_places
2022-12-13 07:21:08,362 31332 INFO odoo odoo.models: Storing computed values of res.company.logo_web
2022-12-13 07:21:08,398 31332 INFO odoo odoo.models: Storing computed values of res.users.share
2022-12-13 07:21:17,359 31332 INFO odoo odoo.modules.loading: loading base/data/res.lang.csv
2022-12-13 07:21:17,605 31332 INFO odoo odoo.modules.loading: loading base/data/res_lang_data.xml
2022-12-13 07:21:17,875 31332 INFO odoo odoo.modules.loading: loading base/data/res_partner_data.xml
2022-12-13 07:21:18,248 31332 INFO odoo odoo.modules.loading: loading base/data/res_company_data.xml
2022-12-13 07:21:18,396 31332 INFO odoo odoo.modules.loading: loading base/data/res_users_data.xml
2022-12-13 07:21:18,782 31332 INFO odoo odoo.modules.loading: loading base/data/report_paperformat_data.xml
2022-12-13 07:21:18,831 31332 INFO odoo odoo.modules.loading: loading base/data/res_currency_data.xml
2022-12-13 07:21:20,130 31332 INFO odoo odoo.modules.loading: loading base/data/res_country_data.xml
2022-12-13 07:21:22,092 31332 INFO odoo odoo.modules.loading: loading base/data/ir_demo_data.xml
2022-12-13 07:21:23,140 31332 INFO odoo odoo.modules.loading: loading base/security/base_groups.xml
2022-12-13 07:21:23,657 31332 INFO odoo odoo.modules.loading: loading base/security/base_security.xml
2022-12-13 07:21:24,313 31332 INFO odoo odoo.modules.loading: loading base/views/base_menus.xml
2022-12-13 07:21:24,882 31332 INFO odoo odoo.modules.loading: loading base/views/decimal_precision_views.xml
2022-12-13 07:21:24,989 31332 INFO odoo odoo.modules.loading: loading base/views/res_config_views.xml
2022-12-13 07:21:25,059 31332 INFO odoo odoo.modules.loading: loading base/data/res.country.state.csv
2022-12-13 07:21:28,094 31332 INFO odoo odoo.modules.loading: loading base/views/ir_actions_views.xml
2022-12-13 07:21:28,590 31332 INFO odoo odoo.modules.loading: loading base/views/ir_config_parameter_views.xml
2022-12-13 07:21:28,681 31332 INFO odoo odoo.modules.loading: loading base/views/ir_cron_views.xml
2022-12-13 07:21:28,807 31332 INFO odoo odoo.modules.loading: loading base/views/ir_filters_views.xml
2022-12-13 07:21:28,899 31332 INFO odoo odoo.modules.loading: loading base/views/ir_mail_server_views.xml
2022-12-13 07:21:29,002 31332 INFO odoo odoo.modules.loading: loading base/views/ir_model_views.xml
2022-12-13 07:21:29,537 31332 INFO odoo odoo.modules.loading: loading base/views/ir_attachment_views.xml
2022-12-13 07:21:29,638 31332 INFO odoo odoo.modules.loading: loading base/views/ir_rule_views.xml
2022-12-13 07:21:29,771 31332 INFO odoo odoo.modules.loading: loading base/views/ir_sequence_views.xml
2022-12-13 07:21:29,897 31332 INFO odoo odoo.modules.loading: loading base/views/ir_translation_views.xml
2022-12-13 07:21:30,038 31332 INFO odoo odoo.modules.loading: loading base/views/ir_ui_menu_views.xml
2022-12-13 07:21:30,122 31332 INFO odoo odoo.modules.loading: loading base/views/ir_ui_view_views.xml
2022-12-13 07:21:30,345 31332 INFO odoo odoo.modules.loading: loading base/views/ir_default_views.xml
2022-12-13 07:21:30,432 31332 INFO odoo odoo.modules.loading: loading base/data/ir_cron_data.xml
2022-12-13 07:21:30,469 31332 INFO odoo odoo.modules.loading: loading base/report/ir_model_report.xml
2022-12-13 07:21:30,499 31332 INFO odoo odoo.modules.loading: loading base/report/ir_model_templates.xml
2022-12-13 07:21:30,546 31332 INFO odoo odoo.modules.loading: loading base/views/ir_logging_views.xml
2022-12-13 07:21:30,631 31332 INFO odoo odoo.modules.loading: loading base/views/ir_qweb_widget_templates.xml
2022-12-13 07:21:30,696 31332 INFO odoo odoo.modules.loading: loading base/views/ir_module_views.xml
2022-12-13 07:21:30,933 31332 INFO odoo odoo.modules.loading: loading base/data/ir_module_category_data.xml
2022-12-13 07:21:31,099 31332 INFO odoo odoo.modules.loading: loading base/data/ir_module_module.xml
2022-12-13 07:21:31,249 31332 INFO odoo odoo.modules.loading: loading base/report/ir_module_reports.xml
2022-12-13 07:21:31,267 31332 INFO odoo odoo.modules.loading: loading base/report/ir_module_report_templates.xml
2022-12-13 07:21:31,352 31332 INFO odoo odoo.modules.loading: loading base/wizard/base_module_update_views.xml
2022-12-13 07:21:31,400 31332 INFO odoo odoo.modules.loading: loading base/wizard/base_language_install_views.xml
2022-12-13 07:21:31,481 31332 INFO odoo odoo.modules.loading: loading base/wizard/base_import_language_views.xml
2022-12-13 07:21:31,577 31332 INFO odoo odoo.modules.loading: loading base/wizard/base_module_upgrade_views.xml
2022-12-13 07:21:31,808 31332 INFO odoo odoo.modules.loading: loading base/wizard/base_module_uninstall_views.xml
2022-12-13 07:21:31,903 31332 INFO odoo odoo.modules.loading: loading base/wizard/base_export_language_views.xml
2022-12-13 07:21:31,984 31332 INFO odoo odoo.modules.loading: loading base/wizard/base_update_translations_views.xml
2022-12-13 07:21:32,087 31332 INFO odoo odoo.modules.loading: loading base/wizard/base_partner_merge_views.xml
2022-12-13 07:21:32,276 31332 INFO odoo odoo.modules.loading: loading base/data/ir_actions_data.xml
2022-12-13 07:21:32,345 31332 INFO odoo odoo.modules.loading: loading base/data/ir_demo_failure_data.xml
2022-12-13 07:21:32,464 31332 INFO odoo odoo.modules.loading: loading base/views/res_company_views.xml
2022-12-13 07:21:32,621 31332 INFO odoo odoo.modules.loading: loading base/views/res_lang_views.xml
2022-12-13 07:21:32,763 31332 INFO odoo odoo.modules.loading: loading base/views/res_partner_views.xml
2022-12-13 07:21:33,466 31332 INFO odoo odoo.modules.loading: loading base/views/res_bank_views.xml
2022-12-13 07:21:33,706 31332 INFO odoo odoo.modules.loading: loading base/views/res_country_views.xml
2022-12-13 07:21:33,983 31332 INFO odoo odoo.modules.loading: loading base/views/res_currency_views.xml
2022-12-13 07:21:34,241 31332 INFO odoo odoo.modules.loading: loading base/views/res_users_views.xml
2022-12-13 07:21:34,947 31332 INFO odoo odoo.modules.loading: loading base/views/ir_property_views.xml
2022-12-13 07:21:35,074 31332 INFO odoo odoo.modules.loading: loading base/views/res_config_settings_views.xml
2022-12-13 07:21:35,146 31332 INFO odoo odoo.modules.loading: loading base/views/report_paperformat_views.xml
2022-12-13 07:21:35,311 31332 INFO odoo odoo.modules.loading: loading base/views/onboarding_views.xml
2022-12-13 07:21:35,530 31332 INFO odoo odoo.modules.loading: loading base/security/ir.model.access.csv
2022-12-13 07:21:36,499 31332 INFO odoo odoo.modules.loading: Module base: loading demo
2022-12-13 07:21:36,500 31332 INFO odoo odoo.modules.loading: loading base/data/res_company_demo.xml
2022-12-13 07:21:36,574 31332 INFO odoo odoo.modules.loading: loading base/data/res_users_demo.xml
2022-12-13 07:21:36,997 31332 INFO odoo odoo.modules.loading: loading base/data/res_partner_bank_demo.xml
2022-12-13 07:21:37,072 31332 INFO odoo odoo.modules.loading: loading base/data/res_currency_rate_demo.xml
2022-12-13 07:21:38,035 31332 INFO odoo odoo.modules.loading: loading base/data/res_bank_demo.xml
2022-12-13 07:21:38,064 31332 INFO odoo odoo.modules.loading: loading base/data/res_partner_demo.xml
2022-12-13 07:21:39,067 31332 INFO odoo odoo.modules.loading: loading base/data/res_partner_image_demo.xml
2022-12-13 07:21:43,308 31332 INFO odoo odoo.modules.loading: Module base loaded in 43.82s, 11200 queries
2022-12-13 07:21:43,309 31332 INFO odoo odoo.modules.loading: 1 modules loaded in 43.82s, 11200 queries (+0 extra)
2022-12-13 07:21:43,365 31332 INFO odoo odoo.modules.loading: updating modules list
2022-12-13 07:21:43,368 31332 INFO odoo odoo.addons.base.models.ir_module: ALLOW access to module.update_list on [] to user __system__ #1 via n/a
2022-12-13 07:21:48,032 31332 INFO odoo odoo.modules.loading: loading 7 modules...
2022-12-13 07:21:48,032 31332 INFO odoo odoo.modules.loading: Loading module web (2/7)
2022-12-13 07:21:48,196 31332 INFO odoo odoo.modules.registry: module web: creating or updating database tables
2022-12-13 07:21:49,139 31332 INFO odoo odoo.modules.loading: loading web/security/ir.model.access.csv
2022-12-13 07:21:49,219 31332 INFO odoo odoo.modules.loading: loading web/views/webclient_templates.xml
2022-12-13 07:21:49,591 31332 INFO odoo odoo.modules.loading: loading web/views/report_templates.xml
2022-12-13 07:21:49,834 31332 INFO odoo odoo.modules.loading: loading web/views/base_document_layout_views.xml
2022-12-13 07:21:49,901 31332 INFO odoo odoo.modules.loading: loading web/data/report_layout.xml
2022-12-13 07:21:50,024 31332 INFO odoo odoo.modules.loading: Module web: loading demo
2022-12-13 07:21:50,064 31332 INFO odoo odoo.modules.loading: Module web loaded in 2.03s, 1297 queries
2022-12-13 07:21:50,065 31332 INFO odoo odoo.modules.loading: Loading module auth_totp (3/7)
2022-12-13 07:21:50,290 31332 INFO odoo odoo.modules.registry: module auth_totp: creating or updating database tables
2022-12-13 07:21:50,430 31332 INFO odoo odoo.modules.loading: loading auth_totp/security/security.xml
2022-12-13 07:21:50,465 31332 INFO odoo odoo.modules.loading: loading auth_totp/views/user_preferences.xml
2022-12-13 07:21:50,642 31332 INFO odoo odoo.modules.loading: loading auth_totp/views/templates.xml
2022-12-13 07:21:50,682 31332 INFO odoo odoo.modules.loading: Module auth_totp: loading demo
2022-12-13 07:21:50,721 31332 INFO odoo odoo.modules.loading: Module auth_totp loaded in 0.66s, 204 queries
2022-12-13 07:21:50,721 31332 INFO odoo odoo.modules.loading: Loading module base_import (4/7)
2022-12-13 07:21:51,176 31332 INFO odoo odoo.modules.registry: module base_import: creating or updating database tables 
2022-12-13 07:21:53,328 31332 INFO odoo odoo.modules.loading: loading base_import/security/ir.model.access.csv
2022-12-13 07:21:53,417 31332 INFO odoo odoo.modules.loading: loading base_import/views/base_import_templates.xml
2022-12-13 07:21:53,455 31332 INFO odoo odoo.modules.loading: Module base_import: loading demo
2022-12-13 07:21:53,555 31332 INFO odoo odoo.modules.loading: Module base_import loaded in 2.83s, 864 queries
2022-12-13 07:21:53,556 31332 INFO odoo odoo.modules.loading: Loading module web_editor (5/7)
2022-12-13 07:21:54,363 31332 INFO odoo odoo.modules.registry: module web_editor: creating or updating database tables
2022-12-13 07:21:54,726 31332 INFO odoo odoo.modules.loading: loading web_editor/security/ir.model.access.csv
2022-12-13 07:21:54,763 31332 INFO odoo odoo.modules.loading: loading web_editor/views/editor.xml
2022-12-13 07:21:55,029 31332 INFO odoo odoo.modules.loading: loading web_editor/views/snippets.xml
2022-12-13 07:21:55,132 31332 INFO odoo odoo.modules.loading: Module web_editor: loading demo
2022-12-13 07:21:55,174 31332 INFO odoo odoo.modules.loading: Module web_editor loaded in 1.62s, 484 queries
2022-12-13 07:21:55,174 31332 INFO odoo odoo.modules.loading: Loading module web_kanban_gauge (6/7)
2022-12-13 07:21:55,327 31332 INFO odoo odoo.modules.loading: loading web_kanban_gauge/views/web_kanban_gauge_templates.xml
2022-12-13 07:21:55,405 31332 INFO odoo odoo.modules.loading: Module web_kanban_gauge: loading demo
2022-12-13 07:21:55,428 31332 INFO odoo odoo.modules.loading: Module web_kanban_gauge loaded in 0.25s, 63 queries
2022-12-13 07:21:55,429 31332 INFO odoo odoo.modules.loading: Loading module web_tour (7/7)
2022-12-13 07:21:55,589 31332 INFO odoo odoo.modules.registry: module web_tour: creating or updating database tables
2022-12-13 07:21:55,692 31332 INFO odoo odoo.modules.loading: loading web_tour/security/ir.model.access.csv
2022-12-13 07:21:55,719 31332 INFO odoo odoo.modules.loading: loading web_tour/security/ir.rule.csv
2022-12-13 07:21:55,762 31332 INFO odoo odoo.modules.loading: loading web_tour/views/tour_templates.xml
2022-12-13 07:21:55,860 31332 INFO odoo odoo.modules.loading: loading web_tour/views/tour_views.xml
2022-12-13 07:21:55,947 31332 INFO odoo odoo.modules.loading: Module web_tour: loading demo
2022-12-13 07:21:55,948 31332 INFO odoo odoo.modules.loading: loading web_tour/data/web_tour_demo.xml
2022-12-13 07:21:56,027 31332 INFO odoo odoo.modules.loading: Module web_tour loaded in 0.60s, 232 queries
2022-12-13 07:21:56,028 31332 INFO odoo odoo.modules.loading: 7 modules loaded in 7.99s, 3144 queries (+0 extra)
2022-12-13 07:21:56,377 31332 INFO odoo odoo.modules.loading: Modules loaded.
2022-12-13 07:22:53,273 31332 INFO ? odoo.http: HTTP Configuring static files
2022-12-13 07:22:56,514 31332 INFO odoo odoo.addons.base.models.ir_cron: Starting job `Base: Auto-vacuum internal data`.
2022-12-13 07:23:01,251 31332 INFO odoo odoo.addons.base.models.ir_http: Generating routing map for key None
2022-12-13 07:23:01,486 31332 INFO odoo werkzeug: 127.0.0.1 - - [13/Dec/2022 07:23:01] "GET / HTTP/1.1" 303 - 1 0.005 4.080
2022-12-13 07:23:01,524 31332 INFO odoo werkzeug: 127.0.0.1 - - [13/Dec/2022 07:23:01] "GET /web HTTP/1.1" 303 - 1 0.000 0.026
2022-12-13 07:23:01,830 31332 INFO odoo odoo.addons.base.models.ir_attachment: filestore gc 56 checked, 2 removed
2022-12-13 07:23:01,929 31332 INFO odoo odoo.addons.base.models.res_users: GC'd 0 user log entries
2022-12-13 07:23:02,053 31332 INFO odoo odoo.addons.base.models.ir_cron: Job `Base: Auto-vacuum internal data` done.
2022-12-13 07:23:01,251 31332 INFO odoo odoo.addons.base.models.ir_http: Generating routing map for key None
2022-12-13 07:23:01,486 31332 INFO odoo werkzeug: 127.0.0.1 - - [13/Dec/2022 07:23:01] "GET / HTTP/1.1" 303 - 1 0.005 4.080
2022-12-13 07:23:01,524 31332 INFO odoo werkzeug: 127.0.0.1 - - [13/Dec/2022 07:23:01] "GET /web HTTP/1.1" 303 - 1 0.000 0.026
2022-12-13 07:23:01,830 31332 INFO odoo odoo.addons.base.models.ir_attachment: filestore gc 56 checked, 2 removed
2022-12-13 07:23:01,929 31332 INFO odoo odoo.addons.base.models.res_users: GC'd 0 user log entries
2022-12-13 07:23:02,053 31332 INFO odoo odoo.addons.base.models.ir_cron: Job `Base: Auto-vacuum internal data` done.

站点访问验证

浏览器中打开http://localhost:8069/web/login,成功的话,可以看到如下界面

Odoo 基于Win10搭建基于Win10搭建odoo14开发环境搭建

输入默认登录账号/密码:admin/admin,点击登录,可以看到如下界面

Odoo 基于Win10搭建基于Win10搭建odoo14开发环境搭建

Pycharm中运行配置

假设全部采用命令行参数

Odoo 基于Win10搭建基于Win10搭建odoo14开发环境搭建

参考连接

https://www.odoo.com/documentation/14.0/zh_CN/administration/install/install.html

https://www.enterprisedb.com/docs/supported-open-source/postgresql/installer/02_installing_postgresql_with_the_graphical_installation_wizard/01_invoking_the_graphical_installer/

https://www.odoo.com/documentation/14.0/zh_CN/developer/cli.html#reference-cmdline-server

https://www.odoo.com/documentation/14.0/zh_CN/applications/general/developer_mode.html#developer-mode

发表回复