Bỏ qua để đến Nội dung
Odoo Menu
  • Đăng nhập
  • Dùng thử miễn phí
  • Ứng dụng
    Tài chính
    • Kế toán
    • Hóa đơn
    • Chi phí
    • Bảng tính (BI)
    • Tài liệu
    • Ký tên
    Bán hàng
    • CRM
    • Bán hàng
    • POS Cửa hàng
    • POS Nhà hàng
    • Đăng ký
    • Cho thuê
    Trang web
    • Trình tạo trang web
    • Thương mại điện tử
    • Blog
    • Diễn đàn
    • Trò chuyện trực tiếp
    • Học trực tuyến
    Chuỗi cung ứng
    • Tồn kho
    • Sản xuất
    • PLM
    • Mua hàng
    • Bảo dưỡng
    • Chất lượng
    Nhân sự
    • Nhân viên
    • Tuyển dụng
    • Ngày nghỉ
    • Đánh giá
    • Giới thiệu
    • Đội xe
    Marketing
    • Marketing trên MXH
    • Marketing qua email
    • Marketing qua SMS
    • Sự kiện
    • Tự động hóa Marketing
    • Khảo sát
    Dịch vụ
    • Dự án
    • Bảng chấm công
    • Dịch vụ hiện trường
    • Hỗ trợ
    • Kế hoạch
    • Lịch hẹn
    Năng suất
    • Thảo luận
    • Phê duyệt
    • IoT
    • VoIP
    • Kiến thức
    • WhatsApp
    Ứng dụng của bên thứ ba Studio Odoo Nền tảng Đám mây Odoo
  • Ngành
    Bán lẻ
    • Nhà sách
    • Cửa hàng quần áo
    • Cửa hàng nội thất
    • Cửa hàng tạp hóa
    • Cửa hàng đồ kim khí
    • Cửa hàng đồ chơi
    Ẩm thực & Dịch vụ lưu trú
    • Bar và quán rượu
    • Nhà hàng
    • Đồ ăn nhanh
    • Guest house
    • Nhà phân phối đồ uống
    • Khách sạn
    Bất động sản
    • Công ty môi giới bất động sản
    • Công ty kiến trúc
    • Xây dựng
    • Quản lý bất động sản
    • Làm vườn
    • Hiệp hội chủ sở hữu bất động sản
    Tư vấn
    • Công ty kế toán
    • Đối tác Odoo
    • Công ty marketing
    • Công ty luật
    • Tuyển dụng
    • Thanh tra & chứng nhận
    Sản xuất
    • Dệt may
    • Kim loại
    • Nội thất
    • Ẩm thực
    • Nhà máy bia
    • Quà tặng doanh nghiệp
    Sức khoẻ & fitness
    • CLB thể thao
    • Cửa hàng kính mắt
    • Trung tâm fitness
    • Chuyên gia chăm sóc sức khỏe
    • Hiệu thuốc
    • Tiệm làm tóc
    Thương mại
    • Dịch vụ sửa chữa
    • Phần cứng CNTT & Hỗ trợ
    • Hệ thống năng lượng mặt trời
    • Công ty sản xuất giày
    • Dịch vụ vệ sinh
    • Dịch vụ HVAC
    Khác
    • Tổ chức phi lợi nhuận
    • Cơ quan môi trường
    • Cho thuê biển quảng cáo
    • Nhiếp ảnh
    • Cho thuê xe đạp
    • Đại lý phần mềm
    Xem tất cả ngành
  • Cộng đồng
    Học tập
    • Khóa học
    • Tài liệu
    • Chứng chỉ
    • Đào tạo
    • Blog
    • Podcast
    Thúc đẩy đào tạo
    • Chương trình đào tạo
    • Trò chơi kinh doanh Scale Up!
    • Tham quan Odoo
    Nhận phần mềm
    • Tải xuống
    • So sánh các phiên bản
    • Phiên bản
    Hợp tác
    • Github
    • Diễn đàn
    • Sự kiện
    • Dịch thuật
    • Trở thành đối tác
    • Dịch vụ dành cho Đối tác
    • Đăng ký công ty kế toán của bạn
    Nhận dịch vụ
    • Tìm đối tác
    • Tìm kế toán
    • Gặp chuyên gia hỗ trợ
    • Dịch vụ Triển khai
    • Khách hàng tham khảo
    • Hỗ trợ
    • Nâng cấp
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Nhận một buổi demo
  • Bảng giá
  • Trợ giúp

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

  • CRM
  • e-Commerce
  • Kế toán
  • Tồn kho
  • PoS
  • Dự án
  • MRP
All apps
Bạn cần phải đăng ký để tương tác với cộng đồng.
Tất cả bài viết Người Huy hiệu
Thẻ (Xem tất cả)
odoo accounting v14 pos v15
Về diễn đàn này
Bạn cần phải đăng ký để tương tác với cộng đồng.
Tất cả bài viết Người Huy hiệu
Thẻ (Xem tất cả)
odoo accounting v14 pos v15
Về diễn đàn này
Hỗ trợ

Odoo.sh upgrade test to v18 without touching production DB

Đăng ký nhận tin

Nhận thông báo khi có hoạt động trên bài viết này

Câu hỏi này đã bị gắn cờ
upgradeodoo.shv18
1 Trả lời
1345 Lượt xem
Ảnh đại diện
David Dozois

Hi,

I'm wondering how to manage an upgrade with odoo.sh while having legacy code on my production database.

Context

  • Odoo.sh project. Production is on Odoo 15.
  • I prepared an upgrade test to v18 in a staging/upgrade branch.
  • The production database still contains legacy modules that will no longer be use. I cannot uninstall them on production right now, and I don’t want to port them to v18 just for the test.
  • Odoo.sh upgrade branches restore from the latest production backup, so those legacy modules (and their records/views) are pulled into the upgrade build and cause registry/view errors.

Question

What’s the supported way on Odoo.sh to run a test upgrade without affecting production and without uninstalling those legacy modules on prod?

Specifically:

  1. Can I point the upgrade branch to a specific sanitized dump (where I’ve already uninstalled/disabled the legacy modules) instead of always restoring “latest production”? 
  2. If DB pointing isn’t available, is it acceptable to ship a temporary v18 “dummy” module (same technical name as the legacy one) that simply neutralizes its views/records (or provides shim fields) so the upgrade can proceed—any official guidance on this pattern? Although it will most likely break as old code will not follow the new guidelines...

Thanks!

0
Ảnh đại diện
Huỷ bỏ
Ảnh đại diện
Christoph Farnleitner
Câu trả lời hay nhất

Your actual production database is not being touched when upgrading a staging branch.

However, odoo.sh performs an upgrade, when executed on a staging branch, in a copy of the latest, automatically created backup of production (i.e. the backup of yesterday night) always.
Note: odoo.sh (as per now) will not use a manually created database backup, neither live nor staging.

There is no option to change this behavior in odoo.sh nor can you select a specific database to run the test upgrade on.


If you want full control about what database is being upgraded you have to run the upgrade locally. For this, you can utilize Odoo's upgrade service described at https://upgrade.odoo.com/#onpremise. Here, essentially, you upload a dump of a database and in return receive the upgraded one, after a while (duration depends on the versions to cover and modules installed).

See also https://www.odoo.com/documentation/18.0/administration/upgrade.html


Furthermore it should be mentioned, that none of the above is actually necessary, when properly utilizing the Odoo upgrade utilities described here: https://www.odoo.com/documentation/18.0/developer/reference/upgrades/upgrade_utils.html
This set of tool allows you to specify how your modules are supposed to be upgraded, what migration actions are supposed to be performed - or even uninstall unwanted/obsolete modules in that process (which sounds like exactly what you should aim for).
One reason, why this is the suggested approach, is because you usually do not want to have an upgrade process that involves several manual steps that might also need to be performed in a specific order. Also, you definitely want to have a test of the upgrade on the latest possible (as is) database available to take actions according to issues that may arise while still in staging.


Alternatively (or in combination with above), as you've stated in point 2 - correct: you could just have a dummy module (original module name) in your upgrade commit (on the staging branch) that doesn't hold much more than a __manifest__.py and an (empty) __init__.py. This way, the upgrade process of odoo.sh won't complain about missing modules, even if the provided module doesn't do anything.
Note: This approach can still cause troubles, for example with records or views, that would not necessarily be removed even if not defined any longer.

1
Ảnh đại diện
Huỷ bỏ
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!

Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!

Đăng ký
Bài viết liên quan Trả lời Lượt xem Hoạt động
First Odoo.sh Upgrade Jitters
upgrade odoo.sh
Ảnh đại diện
0
thg 10 21
2548
[odoo.sh ] Is there any option to upgrade module manually in odoo.sh? Đã xử lý
module upgrade odoo.sh
Ảnh đại diện
Ảnh đại diện
1
thg 1 24
17630
Upgrading from V14 to V15
upgrade upgrades odoo.sh v15
Ảnh đại diện
Ảnh đại diện
Ảnh đại diện
Ảnh đại diện
3
thg 5 22
9006
How to upgrade with a customized database? (odoo.sh) Đã xử lý
development upgrade quickstart odoo.sh
Ảnh đại diện
1
thg 2 22
9802
Is it possible to sell on credit directly at the point of sale and leave the order pending payment?
v18
Ảnh đại diện
Ảnh đại diện
2
thg 9 25
681
Cộng đồng
  • Khóa học
  • Tài liệu
  • Diễn đàn
Open source
  • Tải xuống
  • Github
  • Runbot
  • Dịch thuật
Dịch vụ
  • Lưu trữ Odoo.sh
  • Hỗ trợ
  • Nâng cấp
  • Phát triển tùy chỉnh
  • Đào tạo
  • Tìm kế toán
  • Tìm đối tác
  • Trở thành đối tác
Giới thiệu công ty
  • Công ty của chúng tôi
  • Tài sản thương hiệu
  • Liên hệ
  • Việc làm
  • Sự kiện
  • Podcast
  • Blog
  • Khách hàng
  • Pháp lý • Riêng tư
  • Bảo mật
الْعَرَبيّة 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 là bộ ứng dụng kinh doanh có open source đáp ứng tất cả các nhu cầu của công ty bạn: CRM, thương mại điện tử, kế toán, tồn kho, POS, quản lý dự án, v.v.

Định hướng giá trị riêng biệt của Odoo là tích hợp hoàn toàn và dễ dàng sử dụng.

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