콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
1373 화면

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?  

아바타
취소
작성자

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!

베스트 답변

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.

아바타
취소
베스트 답변

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

아바타
취소
작성자 베스트 답변

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.

아바타
취소
관련 게시물 답글 화면 활동
4
10월 24
861
0
4월 24
1285
Assign groups 해결 완료
1
1월 25
1521
0
3월 24
1306
1
6월 24
1066