Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita una demostración
  • Precios
  • Ayuda

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

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyectos
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

Synchronize two Odoo databases

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
synchronizationsynchronize
16 Respuestas
36625 Vistas
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
Descartar
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.
Mejor respuesta

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

2
Avatar
Descartar
Avatar
JC
Mejor respuesta

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
Descartar
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
Mejor respuesta

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
Descartar
Avatar
ThackerS (ts)
Mejor respuesta

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
Descartar
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
Mitul
Mejor respuesta

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
Descartar
Avatar
klacus
Mejor respuesta

Please check this:

http://www.rubyrep.org/

U can find everthing what is important.

0
Avatar
Descartar
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
Intigra Technolab
Mejor respuesta

Read this.

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

0
Avatar
Descartar
Avatar
Ben Bernard
Mejor respuesta

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
Descartar
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.

¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
How To Synchronize Localhost Database to online Server Database In odoo pos
synchronization
Avatar
Avatar
Avatar
2
oct 25
5838
Synchronise Database
synchronization
Avatar
Avatar
1
oct 25
4608
How to test the bank synchronization in a test environment?
synchronization
Avatar
0
dic 21
35
How to retrieve last updated partners using external API ?
synchronization
Avatar
Avatar
2
sept 21
5280
Odoo v9 to v10 Database Sync - Multi-DB Synchronization Arguments Error
synchronization
Avatar
Avatar
1
mar 17
3940
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidad
  • Seguridad
الْعَرَبيّة 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 es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y estar totalmente integrado.

Sitio web hecho con

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