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

How to set default database for anonymous user?

Suscribirse

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

Se marcó esta pregunta
db_filter
2 Respuestas
9623 Vistas
Avatar
Damian Bere

Simple requirement:  When an anonymous user visits the website, I want it to default to a specific website/database so they don't have to choose the database before even seeing the site... which is a really bad experience, clearly.

However, I do want to have multiple databases that can be selected by users of Odoo when they log in (or are identified by the domain name used). 

I have tried setting the db_name in the configuration, which has no effect, other than to provide a default for module installations etc.

I have tried setting the dbfilter, as follows:

dbfilter=mydbname

 - This correctly selects the exact db, but hides all the others from the selector, and is not dynamic based on domain name, therefore I am really stuck with a single DB with this approach.

dbfilter=^%h$  (which is supposed to be the variable for the full host.domain.tld name)

 - This just does not work.  I have set my db name as:  domainname, domainname.tld (exactly as it appears in the browser) and domainname-tld (as per some tip in a community thread on this topic).  In every case, it asks me to create a new database. 

As I have a naked/bare domain (no www) I cannot use the %d variable, as this only provides the hostname part of the domain name.

I am using nginx and hosting odoo inside a docker container - the nginx proxy pass info set as such:

proxy_set_header X-Forwarded-Host $host;

proxy_set_header X-Forwarded-Server $host;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_pass http://prod-odoo:8069/;

So, I assume I am passing the hostname correctly. 

There appears no other way to make this work, but suggestions welcome.

Can you confirm a) is this possible, b) have I got my configuration correct, or c) is this a bug?

 

0
Avatar
Descartar
Ermin Trevisan

Does anyone have any thoughts on this?  

Avatar
Michel Antonise
Mejor respuesta

Hi Damian,

Did you find a way around this? I'm facing a similar issue.

Thanx.

0
Avatar
Descartar
Damian Bere
Autor

Hi Michel,

Unfortunately, no. I assume this is not possible in Odoo 9, despite it seeming like it should be, based on how that functionality is described. We will be rolling out Odoo 10 soon, so will check to see if this works in the latest release.

If you do figure out how to get it to work, I'd love to hear about it :)

Cheers,

Damian

Michel Antonise

After consulting Odoo, it turns out our approach is wrong and I was asking the wrong questions.

We are still in the start-up fase, but the multiple DB issue was already raising a lot of questions.

We have a test copy of our production DB on our production server.

Causing new users having to choose their DB, which we wanted to avoid.

The solution, as simple as it is logical : we should have only 1 database on the production server.

Looking back on this, I can’t see how I missed this.

There are a million reasons why you would want an isolated production environment, without testing stuff on it.

I guess, we got blind sighted because it is so simple to create a duplicate of the production DB and use the copy as a “production like test”.

I hope you can get a solution for your question.

Regards,

Michel

¿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
Database list only showing 1 database
db_filter odoo.conf
Avatar
Avatar
Avatar
2
sept 23
10642
How to prevent user select specific db by add ?db=select_db in url ?
list_db db_filter
Avatar
Avatar
Avatar
Avatar
3
ago 21
17569
Where in code, i can find the db filter function? Resuelto
db_filter regex
Avatar
Avatar
1
may 18
5488
Domain based db filter Resuelto
list_db db_filter
Avatar
Avatar
Avatar
Avatar
Avatar
11
jul 24
103774
How to set dbfilter in multi-domain, multi-subdomain and multi-database? Resuelto
db_filter dbfilter odoo16features
Avatar
Avatar
Avatar
3
oct 25
6028
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.

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