Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

Synchronize two Odoo databases

Odoberať

Get notified when there's activity on this post

This question has been flagged
synchronizationsynchronize
16 Replies
36621 Zobrazenia
Avatar
Paulo Matos‏

Dear all,

I need to syncronize two openerp physically distanced databases. One database is on local install, and the second database must on a cloud environment.

Since I lack of good internet access, I cannot have the system working full time on cloud, and the solution is to allow access to the database via cloud (A) and local install (B). When I am on the company, I use the local install (A), and when outside the company, I use the cloud Odoo system (B).

With syncronization, I want to have all data entered on the cloud A available on the local install B and vice-versa.

The syncronitation should be time defined and/or on demand.

Any help?

Thank you very much

Regards

Paulo

3
Avatar
Zrušiť
MONEO Tomasz Serwanski

I believe only supported way to have replicated databases is to use web services to keep both of them at same state/level; more about webservices you may find here: https://doc.odoo.com/6.1/developer/12_api/ but be aware please that so called 'web services' are more a tool than a solution; if you would need to have solution for having both databases with same data with minimum delays/lags, you would have to - probably - hire developer to make solution (two consistent databases) from tool (web services). By the way, I would be interested in similar solution as well, considering there are more people wanted to have replicas, maybe would be good to let odoo developers know that there is such a need in community?.. :) regards Tomasz

Luke Branch

@Paulo, SerpentCS has ported the base_synchro module to version 8.0: https://github.com/JayVora-SerpentCS/SerpentCS_Contributions-v8 I think this module is specifically designed to handle multi-master Odoo instances to allow you to have different Odoo instances synced with each other. I have not yet tried it myself, however I will be setting something like what you have described soon (POS, Website, and Main Server - three separate instances synced), so I will post back here with what I discover. In the meantime if you have any questions regarding the module i'd recommend contacting Serpent Consulting through their github profile.

Avatar
Serpent Consulting Services Pvt. Ltd.
Best Answer

Kindly see https://github.com/JayVora-SerpentCS/SerpentCS_Contributions-v8/tree/master/base_synchro !

2
Avatar
Zrušiť
Avatar
JC
Best Answer

For Asynchronous replication, you can setup bucardo  and run in your local server. The remote or cloud server is not required for any installation but you must have postgres 9.x above for both location, you can setup master-master replication or master-slave replication. Once installed just cron the sync on demand by starting and stopping the service.  Bucardo 5.1.1 works for me hope it can help you too.

4
Avatar
Zrušiť
Paulo Matos‏
Autor

jc, are you using bucardo? great news and I really believe it can solve my problem. I have tried to use it but had lots of problem during installation process. Will try it again.

MONEO Tomasz Serwanski

As far as I know odoo is not supporting any database-level manipulation/replication? I believe bucardo may be used for database level replication, question is if it is recommended way considering odoo point of wiev: https://doc.odoo.com/6.1/developer/12_api/ regards Tomasz

Avatar
filsystem
Best Answer

Forget asynchronous replication. Suppose you have two databases asynchronous replicated, each accessed by one diferent user. In a time when the two dates are not connected, the two users insert a new record in the same object in each of the two databases (in sale.order for example). I have the same ID for sale.order? (Primary key IDs are serial long in odoo). Also reference field will have the same SO ...? Raise this situation a conflict at next replication ? I think yes...

2
Avatar
Zrušiť
Avatar
ThackerS (ts)
Best Answer

Hi Paulo
For your problem, i think you can get a good result if you define a cron job which synchronise data on the two databases periodically.

A link for definition of cron job : http://www.thesitewizard.com/general/set-cron-job.shtml

Best regards
NB: If my answer help you, don't forget to vote my message. Thank you.

1
Avatar
Zrušiť
Paulo Matos‏
Autor

Hi Chancerel, thank you. I have a look on you link. Unfortunetly I have not enough karma to vote heheh. If I have any problem I will post it here.

Avatar
klacus
Best Answer

Please check this:

http://www.rubyrep.org/

U can find everthing what is important.

0
Avatar
Zrušiť
Paulo Matos‏
Autor

klacus, thank you. Just one question, does rubyrep works with tables with no primary key? Have you use it with Odoo? Thank you.

OdooBot
Hi Paolo!

Unfortunately not. i do not have any experience about it.
Sorry.
B.R.
Laci
2014-09-05 10:41 keltezéssel, paulo.matos@thinkopensolutions.co.ao írta:
<blockquote cite="mid:1409906484.694796085357666.313446659029486-openerp-60362-forum.post@accounts.odoo.com" type="cite">

klacus, thank you. Just one question, does rubyrep works with tables with no primary key? Have you use it with Odoo? Thank you.

--
Paulo Matos‏
Sent by OpenERP S.A. using Odoo about Forum Post False
Avatar
Mitul
Best Answer

Lets say if your internet connection goes off at your Local Office. The people who are using at your office will prepare some quotes in local erp and you might be travelling and might make quotations on cloud database,

How does above mentioned solutions help? Does it take care of conflicts too?

0
Avatar
Zrušiť
Avatar
Intigra Technolab
Best Answer

Read this.

It'll help you with setting up a multi master or master slave replication for Odoo

0
Avatar
Zrušiť
Avatar
Ben Bernard
Best Answer

One easy practical solution is to backup your database in cloud drive, like dropbox. So syncronization process is handle by the cloud drive. What you have to focus is the backup/restore database script which can be triggered by cron/scheduled job.

-3
Avatar
Zrušiť
Paulo Matos‏
Autor

It was a solution but the problem is not backup/restore problem. The ideia is syncronization. I will have some users using the database on both sides. Backing up and restore will make loose data from one of the sides.

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrácia
Related Posts Replies Zobrazenia Aktivita
How To Synchronize Localhost Database to online Server Database In odoo pos
synchronization
Avatar
Avatar
Avatar
2
okt 25
5837
Synchronise Database
synchronization
Avatar
Avatar
1
okt 25
4608
How to test the bank synchronization in a test environment?
synchronization
Avatar
0
dec 21
35
How to retrieve last updated partners using external API ?
synchronization
Avatar
Avatar
2
sep 21
5277
Odoo v9 to v10 Database Sync - Multi-DB Synchronization Arguments Error
synchronization
Avatar
Avatar
1
mar 17
3938
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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