Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
127 มุมมอง

Hello there,

​How can I keep the custom modules & studio customization as same in the staging db then data only from the production db to be restored?


​Any suggestion/clarification/document link/anything related to this from your end will help a lot.


Thanks!


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,


To keep custom modules and Studio customizations in staging while restoring only production data, you should restore the production database without overwriting custom modules. This means you either:


    Restore only the data (not the filestore or custom modules) from production into staging.


    Or restore the full production DB, then re-install/merge your staging custom modules and Studio customizations back.


The key idea is to separate code/customizations (kept in staging) from data (copied from production).


Hope it helps

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

This is a common need when working with Odoo.sh because restoring production to staging will, by default, overwrite both code and database (including studio customizations).

Export Studio Customizations as Module

  • Go to Odoo Studio → Customizations → Export as Module.
  • Add that module to your Odoo.sh repo (install it on all environments).
  • This way, Studio changes live in Git → safe across restores.

Update Staging DB with Production Data

  • From Odoo.sh dashboard → Staging branch → "Restore" → Select Production backup.
  • This replaces staging DB with production DB (data + configs).
  • Code remains as per staging branch.
  • Install/upgrade your Studio module to apply those changes again.

So, in short:

  • Custom modules are safe (they live in Git).
  • Studio customizations must be exported as a module if you don’t want them wiped out when restoring production DB.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มี.ค. 24
1881
3
ม.ค. 22
5133
3
มิ.ย. 16
7518
1
มี.ค. 15
5820
2
ม.ค. 25
1217