一键安装最新odoo 13,12,11社区版企业版+ postgresql10 +nginx在ubuntu上的自动安装脚本,阿里云测试通过,
-
原文地址(更好的阅读体验): https://www.sunpop.cn/odoo-12-postgresql-10-ubuntu-aliyun-one-click-install-script/
操作如下:以root用户登录你的ubuntu主机,执行以下指令,全自动安装脚本
wget https://www.sunpop.cn/download/odoo_install.sh && bash odoo_install.sh 2>&1 | tee odoo.log
作为odoo官方合作伙伴,我们一直在关注 odoo 最新版本的发展,同时也快速的将最新功能稳定的迁移到客户的商业项目中。在odoo13中,我们看到了很多吸引人的特性,比如全新改造的供应链管理终于支持MTS+MTO,销售订单中快速下单可定制产品,完整的HR人力资源和在线教育功能等。
为此,我们做了 odoo13的windows绿色版和 ubuntu 一键安装脚本。
执行本一键安装脚本,完成安装最新 odoo13,12,11 + postgresql 10 + nginx,您将得到:
1. 中文字体,PDF报表,时间同步,SCSS编译等odoo支持组件 2. postgres 10 安装在 /usr/lib/postgresql/10 3. postgres 10 配置在 /etc/postgresql/10/main 4. odoo 最新版 安装在 /usr/lib/python3/dist-packages/odoo 5. odoo 配置文件位于 /etc/odoo/odoo.conf 6. Nginx 作为反向代理,开启了多worker工作模式,可使用odoo在线即时通讯 7. odoo访问地址为(用你的域名代替 yourserver.com) http://yourserver.com 或者http://yourserver.com:8069 8. 一个 r.sh 文件用于重启 odoo 服务,使用root用户登录后键入bash r.sh 即可执行 9. 使用最新的pdf打印组件wkhtmltox 0.12.5 版本,打印更清晰 10.增加python库,主要支持企业版中 ical, ldap, esc/pos,参考 https://www.odoo.com/documentation/12.0/setup/install.html
本安装适用于初学者和开发者,如使用odoo至生产环境,建议寻找附近的 odoo 合作伙伴,或者联系我们-广州尚鹏。
提供源码,有问题请提issue。如果您的操作系统是 Windows,请下载我们的64位 odoo12绿色版。
[url href="/odoo12-python3-win64-download"]64位 odoo12绿色版[/url]
[url href="https://github.com/guohuadeng/odoo_install_script_cn"]在github提issue[/url]
本 unbuntu 一键安装脚本说明如下:========================================================================== # 最近更新:2019-05-29 # 支持版本 Ubuntu 14.04, 15.04, 16.04 and 18.04 # 支持版本 python版本跟随操作秕,Ubuntu 14.04, 15.04, 16.04(Python3.5.2) and 18.04(Python3.6.7) # 作者: Ivan Deng # 支持: https://www.sunpop.cn #------------------------------------------------------------------------------- # 本脚本将安装Odoo到你的服务器上,一般而言,整个过程在3~5分钟完成 # 为使中文设置生效,建议重启一下机器。 执行 reboot #------------------------------------------------------------------------------- # 使用方法,直接在主机上执行以下指令 # wget https://www.sunpop.cn/download/odoo_install.sh && bash odoo_install.sh 2>&1 | tee odoo.log #------------------------------------------------------------------------------- # (1) 选择要安装的类型 # 1为从odoo官网安装odoo12,2为安装本地社区版odoo12,3为安装本地企业版odoo12(请联系购买) # 4为从odoo官网安装odoo11,5为安装本地社区版odoo11,6为安装本地企业版odoo11(请联系购买) # 7为从odoo官网安装odoo13 # 选择2时请确保 odoo_12.0.latest_all.deb 已上传至当前目录 # 选择3时请确保 odoo_12.0+e.latest_all.deb 已上传至当前目录 # 选择5时请确保 odoo_11.0.latest_all.deb 已上传至当前目录 # 选择6时请确保 odoo_11.0+e.latest_all.deb 已上传至当前目录 # 选择8时请确保 odoo_13.0alpha1.latest.zip 已上传至当前目录 # (2) 选择要安装的Postgresql 数据库 # 选择 PG9 版本将有更好兼容性,也可杜绝某些阿里云服务器无法访问最新 postgresql 官网源的问题 # 选择PG10 版本将有更好性能,部份阿里云服务器无法访问最新 postgresql 官网源会导致安装失败 # (3) 选择是否要安装Nginx # 安装Nginx则可直接使用80端口访问odoo,同时可使用网站即时通讯
问题可参考
#------------------------------------------------------------------------------- # 如遇问题,可卸载 pg 及 odoo,重新安装 #------------------------------------------------------------------------------- ## sudo aptitude remove -y postgresql-10 ## sudo aptitude remove -y odoo
==========================================================================
odoo 13 运行成功,以下为运行截图。我们为odoo13开发了若干模块
=原生应用列表=
=增强的部分hr功能-在线网课=odoo12 绿色版及相关文章,请查阅
-
错误:
Odoo Server ErrorTraceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/http.py", line 656, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 314, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/usr/lib/python3/dist-packages/odoo/http.py", line 698, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 346, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 941, in call
return self.method(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 519, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 962, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 749, in call_kw
return _call_kw_multi(method, model, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 736, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_channel.py", line 394, in message_post
message = super(Channel, self.with_context(mail_create_nosubscribe=True)).message_post(message_type=message_type, moderation_status=moderation_status, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/rating/models/mail_thread.py", line 14, in message_post
message = super(MailThread, self).message_post(**kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_thread.py", line 2065, in message_post
self._message_post_after_hook(new_message, values, model_description=model_description, mail_auto_delete=mail_auto_delete)
File "/usr/lib/python3/dist-packages/odoo/addons/mail_bot/models/mail_thread.py", line 12, in _message_post_after_hook
return super(MailThread, self)._message_post_after_hook(message, values, model_description=model_description, mail_auto_delete=mail_auto_delete)
File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_thread.py", line 2087, in _message_post_after_hook
mail_auto_delete=mail_auto_delete,
File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_message.py", line 1064, in _notify
rdata = self._notify_compute_recipients(record, msg_vals)
File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_message.py", line 1084, in _notify_compute_recipients
res = self.env['mail.followers']._get_recipient_data(record, subtype_id, pids, cids)
File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_followers.py", line 141, in _get_recipient_data
self.env.cr.execute(query, tuple(params))
File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 148, in wrapper
return f(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 225, in execute
res = self._obj.execute(query, params)
psycopg2.ProgrammingError: 错误: 字段 "partner.active" 必须出现在 GROUP BY 子句中或者在聚合函数中使用
LINE 12: partner.active as active, partner.partner_share as p...
^