跳至内容
Odoo 菜单
  • 登录
  • 免费试用
  • 应用程序
    财务
    • 会计
    • 发票
    • 费用
    • 电子表格 (BI)
    • 文档
    • 电子签名
    销售
    • 客户关系管理
    • 销售
    • POS 销售点管理-零售
    • POS 销售点管理 - 餐厅
    • 订阅
    • 租赁
    网站
    • 网站设计
    • 电子商务
    • 博客
    • 论坛
    • 在线客服
    • 在线学习
    供应链
    • 库存
    • 制造
    • 产品生命周期
    • 采购
    • 维护保养
    • 品控
    人力资源
    • 员工
    • 招聘
    • 休假
    • 评价
    • 内部推荐
    • 车队
    营销
    • 社媒营销
    • 电邮营销
    • 短信营销
    • 近期活动
    • 营销自动化
    • 网上调查
    服务
    • 项目管理
    • 工时单
    • 现场服务
    • 服务台
    • 排期
    • 预约
    生产力
    • 讨论
    • 批核
    • IoT物联网
    • VoIP
    • 知识库
    • WhatsApp
    第三方应用软件 Odoo 定制 Odoo云端平台
  • 行业
    零售
    • 书店
    • 服装店
    • 家具店
    • 食品杂货店
    • 五金店
    • 玩具店
    餐饮与酒店服务
    • 酒吧及酒馆
    • 餐厅
    • 快餐
    • 民宿
    • 饮品分销商
    • 酒店
    房地产
    • 房地产代理
    • 建筑师事务所
    • 建造业
    • 地产管理
    • 园艺
    • 业主协会
    咨询
    • 会计师事务所
    • Odoo合作伙伴
    • 市场推广公司
    • 律师事务所
    • 人才招聘
    • 审核 & 认证
    制造
    • 纺织
    • 金属
    • 家具
    • 食品
    • 啤酒厂
    • 企业礼品
    保健与健身
    • 体育俱乐部
    • 眼镜店
    • 健身中心
    • 健康从业者
    • 药房
    • 发型屋
    Trades
    • 维修人员
    • IT 硬件及支持
    • 太阳能系统
    • 鞋匠
    • 清洁服务
    • 暖通空调服务
    其他
    • 非营利组织
    • 环境机构
    • 广告牌租赁
    • 摄影服务
    • 自行车租赁
    • 软件经销商
    浏览所有行业
  • 社区
    学习
    • 教学视频
    • 文档
    • 认证
    • 培训
    • 博客
    • 播客
    赋能教育
    • 教育计划
    • Scale Up! 商业游戏
    • 参观Odoo
    获取软件
    • 下载
    • 版本对比
    • 发布
    合作
    • Github
    • 论坛
    • 近期活动
    • 翻译
    • 成为合作伙伴
    • 合作伙伴服务
    • 注册您的会计事务所
    获取服务
    • 寻找合作伙伴
    • 查找会计服务
    • 预约顾问咨询
    • 安装及推行服务
    • 客户参考
    • 支持
    • 升级
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    获取演示
  • 定价
  • 技术支持

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • 客户关系管理
  • e-Commerce
  • 会计
  • 库存
  • PoS
  • 项目
  • MRP
All apps
只限注册用戶才可与社群互动。
所有帖文 人 徽章
标签 (查看所有)
odoo accounting v14 pos v15
关于此论坛区
只限注册用戶才可与社群互动。
所有帖文 人 徽章
标签 (查看所有)
odoo accounting v14 pos v15
关于此论坛区
帮助

How To Upgrade Nightly Build

订阅

此帖文有活动时,接收通知

此问题已终结
v7ubuntuupgrade
3 回复
16021 查看
形象
Wira Bakti Soenaryo

Hello,

As of the subject, how to correctly upgrade our openerp server? Until now usually I do like this 1. download the newest version 2. stop the openerp server => /etc/init.d/openerp stop 3. remove the openerp => apt-get remove openerp 4. install the new version => gdebi opernerp.... Currently I'm using Ubuntu 12.04. Is that the best way to upgrade or maybe any other suggestion? Thanks...

1
形象
丢弃
形象
Onur Başer
最佳答案

you can use bzr as follows:

TO INSTALL:

sudo apt-get install bzr

sudo su – openerp

cd /opt/openerp

bzr branch lp:openobject-server/7.0 server

bzr branch lp:openobject-addons/7.0 addons

bzr branch lp:openerp-web/7.0 web

TO UPDATE

sudo /etc/init.d/openerp-server stop

sudo su - openerp -s /bin/bash

cd /opt/openerp/addons/

bzr pull

cd /opt/openerp/web/

bzr pull

cd /opt/openerp/server/

bzr pull

Check this for full installation:

Check question 2562 how-to-install-openerp-v70-on-ubuntu-1204-from-launchpad-repository

I can't post link due to Karma limitation.

3
形象
丢弃
形象
Ray Carnes
最佳答案

Upgrading has two steps:

  1. The source code
  2. The database(s)

This is a script one of our clients, Logic Supply, uses to upgrade the code and the databases:

#!/usr/bin/env python
# update-branches
# Author:       Brendan Clune
# Description:  Updates the server, web, and addons branches of
#               OpenERP and records their previous revision numbers
#               in a timestamped update log.

from datetime import date
import subprocess, xmlrpclib, sys, os, psycopg2, pexpect

# Database info
db_user = '<your credentials>'
db_passwd = '<your credentials>'
db_host = '<your server>'
db_port = 5432
db_name = 'postgres'
oerp_conf = '<path to your configuration file>'
oerp_bin = "<path to openerp-server branch folder>/openerp-server"

today = date.today()
log_date = today.strftime('%Y%m%d')
log_name = "branch-update-{}.log".format(log_date)
base_dir = os.getcwd()

with open(log_name, 'a+') as log_file:
  for branch in ["server", "web", "addons"]:
    # Get revision number
    rev_cmd = ["bzr", "revno", branch]
    try:
      rev_no = subprocess.check_output(rev_cmd, stderr=subprocess.STDOUT).strip()
    except subprocess.CalledProcessError as e:
      print "Error invoking bzr revno: {}".format(e.strerror)
    status = "Pulling latest {} revision (currently {}).".format(branch, rev_no)
    print status
    log_file.write(status + "\n")

    # Update branch
    update_cmd = ["bzr", "pull"]
    try:
      os.chdir(branch)
      status = subprocess.check_output(update_cmd, stderr=subprocess.STDOUT).strip()
    except subprocess.CalledProcessError as e:
      print "Error invoking bzr update: {}".format(e.strerror)
    os.chdir(base_dir)
    print status
    log_file.write(status + "\n")

  # Get list of databases
  db = psycopg2.connect(user=       db_user, 
                        password=   db_passwd,
                        host=       db_host,
                        port=       db_port,
                        database=   db_name)
  cr = db.cursor()
  cr.execute("select datname from pg_database where datdba=(select usesysid from pg_user where usename='{}') order by datname".format(db_user))
  dblist = [str(name) for (name,) in cr.fetchall()]

  for database in dblist:
    # Wait for server to upgrade database, then kill it
    print "Upgrading database {}...".format(database)
    dbupdate_cmd = "{} -c {} --database={} --update=all".format(oerp_bin, oerp_conf, database) 
    output = pexpect.spawn(dbupdate_cmd)
    try:
      output.expect('.*OpenERP server is running, waiting for connections...', timeout=600)
    except pexpect.ExceptionPexpect as e:
      print "Timeout reached while upgrading {}. Try manually upgrading the database with the command '{}'.".format(database, dbupdate_cmd)
    output.kill(0)

    status = "Upgraded database {}.".format(database)
    print status
    log_file.write(status + "\n")
2
形象
丢弃
Wira Bakti Soenaryo
编写者

Thanks for the code... anyway, may I know what kind of file extention it will be and how do I run it?

Ray Carnes

It is a Python script.

Cameron

Wooooowww! To Pyromaniac like me! this is a box of matches and a window into another world...burn baby burn! :)))))

Brendan Clune

Just a heads up; you'll want to install the Python module 'pexpect' to make everything work. 'sudo easy-install pexpect' should do the trick! You'll want to leave it at the root of your OpenERP folder and run it from there, or adjust the paths accordingly.

Wira Bakti Soenaryo
编写者

Hai... if for example I backup my current database... then remove the current openerp and install the lastest one.. After that I restore the database. As of the information above, the database upgrade will or will not be perform? IF NOT... then the backup database feature is just useless then? Thanks...

Ray Carnes

Yes. Backup works for keeping a copy of your database in case you need to restore it on the same version (the usual benefit of a backup) as well as for migrating/upgrading between minor versions of OpenERP (ie: from 6.1 March to 6.1 November or from 7.0 December to 7.0 March) when you use the --update=all command-line argument. You cannot migrate between major versions (ie: from 6.1 to 7.0) using this method.

形象
Peter Seng
最佳答案

you can use bzr tool to pull from lauchpad...when you upgrade just use "bzr pull"

0
形象
丢弃
喜欢讨论吗?不要只阅读,加入进来!

立即创建账户,享受专属功能,与我们的精彩社区互动!

注册
相关帖文 回复 查看 活动
FATAL: role "openerp" does not exist - in log after installing OpenERP 已解决
v7 ubuntu
形象
形象
形象
2
12月 23
20803
guide to upgrading a v6 module to v7?
module v7 upgrade
形象
形象
1
3月 15
6260
How to install OpenERP v 7.0 on linux?
installation v7 ubuntu
形象
形象
形象
形象
形象
4
3月 15
12232
check writing modules displays always in euro
v7 ubuntu account
形象
形象
形象
2
3月 15
6406
modifying and upgrading new openerp from modified openerp
development v7 upgrade
形象
形象
1
3月 15
4732
社区
  • 教学视频
  • 文档
  • 论坛
开源
  • 下载
  • Github
  • Runbot
  • 翻译
服务
  • Odoo.sh 托管
  • 支持
  • 升级
  • 自定义开发服务
  • 教育
  • 查找会计服务
  • 寻找合作伙伴
  • 成为合作伙伴
关于我们
  • 我们的公司
  • 品牌资产
  • 联系我们
  • 招聘
  • 近期活动
  • 播客
  • 博客
  • 客户
  • 法律 • 隐私
  • 安全
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo致力于为企业管理提供高效智能的开源解决方案,是全球业内高速成长的软件服务商之一,逾七百五十万用户选择Odoo进行数字化升级。通过一系列全业务链覆盖、高度集成、简单易用的商业应用,助力企业实现信息化改革、降本增效并释放公司增长潜力。

Odoo独特的价值在于是一款非常容易使用又完全集成的应用。

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now