Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • e-learning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Conocimientos
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Alimentación y hostelería
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidor de bebidas
    • Hotel
    Inmueble
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Empresa contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textil
    • Metal
    • Muebles
    • Alimentos
    • Cervecería
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y soporte técnico
    • Sistemas de energía solar
    • Zapatero
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin ánimo de lucro
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Explorar todos los sectores
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Servicios para partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar 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
  • Proyecto
  • 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

Date and number formats not correct

Suscribirse

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

Se marcó esta pregunta
dateseparatorversion8
2 Respuestas
9804 Vistas
Avatar
Luis Alberto Panozzo

I am surprised to find out that almost regardless of the language you install (unlike what happened until 6.1 and possibly 7.0) you always get the US date format and decimal separator.

Yes, it is simple to change in Settings > Languages but I feel it is a "soft" bug ... like, well, we do not have time so let the users take care of that. 

Besides, even though I have a Thousands separator (and this is regardless of the language), the separator is not shown. While I would like to see 1.000,23 I still see 1000,23 

Is this a bug or is it working as designed?

PS: I have tried with en_US, en_UK, es_ES, es_AR and nb_NO

1
Avatar
Descartar
Avatar
Yenthe Van Ginneken (Mainframe Monkey)
Mejor respuesta

Hi Luis

It seems that Odoo takes by default the dateformat %m/%d/%Y. You can see this in misc.py under /odoo/odoo-server/openerp/tools/ (https://github.com/odoo/odoo/blob/8.0/openerp/tools/misc.py)
However this is a rather small and annoying thing I honestly find this a bug. But Odoo probably thinks otherwise about this. You can always report a bug if you'd wish, its worth the try. You can do that here: https://github.com/odoo/odoo/issues

To fix this you have two options.
1) Simply go to settings > Languages and modify it for every language
2) Create a .yml file where you automaticly install and configure the language as you'd like. I've created a lang_preferences.yml file under the module base (as this is default installed) and simply added this code:

-
  Set NL as default lang
-
  !python {model: res.lang}: |
    if self.search(cr, uid, [('code', '=', 'nl_NL')], limit=1):
      value_obj = self.pool.get('ir.values')
      ids = value_obj.search(cr, uid, [
        ('name', '=', 'lang'),
        ('key', '=', 'default'),
        ('model', '=', 'res.partner'),
      ], limit=1, context=context)
      vals = {
        'name': 'lang',
        'key': 'default',
        'key2': False,
        'model': 'res.partner',
        'object': False,
        'value_unpickle': 'nl_NL',
      }
      if ids:
        value_obj.write(cr, uid, ids, vals, context)
      else:
        value_obj.create(cr, uid, vals, context)
-
  custom date and time format.
-
  !python {model: res.lang}: |
    lang_ids = self.search(cr, uid, [('code', '=', 'nl_NL')], limit=1)
    if lang_ids:
      self.write(cr, uid, lang_ids, {
        'date_format': '%d/%m/%Y',
        'time_format': '%H:%M:%S',
      }, context)
 

This will by default install the Dutch language, set it as the active language and set the dateformat to %d/%m/%Y and will do this for every database you ever create.
NOTE: Be sure to also add the new .yml file in your __openerp__.py file or it will not be loaded/used.

As for your seperator and format, you could probably do something sortlike with the field decimal seperation mark? I'm not sure about that part so I'll leave that to somebody else to be sure.

Hope this helps you!
Yenthe

4
Avatar
Descartar
Bole

thumb up :)

Yenthe Van Ginneken (Mainframe Monkey)

Thanks Bole! You gave me a good example to understand yml files so thanks again for that :)

Bole

and thumb up is for using it :)

Avatar
Luis Alberto Panozzo
Autor Mejor respuesta

Thank you, Yenthe ...

Yes, I am aware of the simple GUI change and I have done it already. I am tempted to believe the attitude was "It is so simple and we are so pressed for time that we will not do it ... let the users do it". On top of that, assuming that the US format is the standard everyone should adopt is something I would have never expected from a European company (even though I understand that the lure of the US market is almost imposssible to resist).

Having to write a specific module is an option (even cutting and pasting) but somehow that is a tad beyond the point. (On top of that I am no programmer so even cutting and pasting would not be good for me since I do not have access to the server). 

I have solved the thousands separator issue, though. Apart form choosing a separtor character (normally, a period for Europeans, but can also be a blank) you have to set the separator format which by default shows as a mere pair of square brackets ( [] ) to [3,0] and 5432,12 will read, for example, as 5.432,12 or 5 432,12.

0
Avatar
Descartar
Yenthe Van Ginneken (Mainframe Monkey)

@Luis I agree that the current behaviour and setup isn't too great. They seem to be having some problems with dateformats, timeformats, translations & seperators anyways. There are a number of things that still aren't ideal but I'd assume they will look into this for V9? There is no official response about these things though.

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

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

Inscribirse
Publicaciones relacionadas Respuestas Vistas Actividad
odoo 16 dashboard select specific date range Resuelto
date
Avatar
Avatar
Avatar
3
jun 25
2641
How to get Creation Date for created Customer? Resuelto
date
Avatar
Avatar
1
ene 25
19104
How to calculate total days between count_start and count_end? Resuelto
date
Avatar
Avatar
1
ene 20
4873
How to give the specific date like "2022-12-31",not the default date as today? Resuelto
date
Avatar
Avatar
1
dic 19
7400
How to compare with the date that which one is earlier,which one is late? Resuelto
date
Avatar
Avatar
1
dic 19
18197
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información 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 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