İçereği Atla
Menü
This question has been flagged
3 Cevaplar
1275 Görünümler

Hello, I'm seeking a method to efficiently deploy specific configurations from one Odoo project to another that hosted on the cloud, without the need for manual replication. Importantly, I wish to avoid exporting the entire database, as I only require the configurations and not the entirety of the data. How can I accomplish this seamlessly?  

Avatar
Vazgeç
Üretici

Thank you, Jort .I am seeking is a method to deploy the configurations made through the graphical interface, such as creating new user groups. The solution you provided pertains to deploying the source code rather than the configurations modified or created via the graphical interface.

In that case I misunderstood your question. You can create a custom module where you add the required configuration in a xml data file. I always advice to look at the source code of existing modules. You can, e.g., take a look at the demo data for modules. E.g., https://github.com/odoo/odoo/blob/17.0/addons/sale/data/sale_demo.xml

Note the noupdate attribute. This will determine if the data remains in the database after uninstall/update.

I hope this helps!

Best Answer

One of the most robust ways to transfer configurations without data is to encapsulate those configurations within custom modules. This method involves:

  • Identifying Configurations: Pinpoint the configurations you need to transfer. This could be specific settings within Odoo apps, custom fields, workflows, etc.
  • Custom Module Creation: Develop a custom module (or modules) that programmatically set these configurations upon installation. This can involve overriding models to set default values, writing data files within the module to create records for configurations (e.g., XML or CSV files that set up specific records like product categories, sales taxes, etc.), or using server actions to adjust settings post-installation.

By deploying these modules to your other Odoo instance, you can apply the configurations without carrying over the existing database's transactional data.

Avatar
Vazgeç
Best Answer

Infrastructure as code (e.g., Packer, Terraform), or containers (e.g., Docker, Docker Swarm, K8s) might be something you are looking for. This allows you to configure a server, or Docker container, which you can deploy whenever you want. You might want to take at my blog post: How to launch your Odoo server on the cloud instantly or Dock, Stack & Launch: Odoo deployment with Docker and Portainer.

I hope this helps

Avatar
Vazgeç
Üretici Best Answer

Hello Hans, I appreciate your response. Upon reviewing the information you provided, I realized that as a newcomer to Odoo, I still require further clarification on how to effectively implement the proposed solution. Could you kindly provide a more detailed explanation or walkthrough of the steps involved? Your expertise would greatly assist me in comprehending and executing this solution accurately. Thank you.

Avatar
Vazgeç
Related Posts Cevaplar Görünümler Aktivite
4
Eki 24
769
0
Nis 24
1161
1
Oca 25
1444
0
Mar 24
1199
1
Haz 24
985