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
    • eLearning
    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 taberna
    • 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
    • Brewery
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y asistencia informática
    • 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
    Browse all Industries
  • 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
    • Services for 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

How to change the Date/Calendar widget to support Solar Hijri calendar?

Suscribirse

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

Se marcó esta pregunta
systemcalendardate
14 Respuestas
19363 Vistas
Avatar
Pooria Madani

I want to use OpenERP as the main ERP system for my company. The only problem is that our corporation does not use Georgian Calendar because of the geolocation of the company. In contrast, we are using Solar Hijri calendar as the offical calendar for dating our transactions.

I'm looking for direction to start. I know I have to implement it myself and there is no problem about that. But I don't know where to start.

Should keep inserting all the data into database based on Georgian Calendar but when I read them back into Web interface, I translate and convert them to Hijri Calendar ? If so what files or packages I should modify ?

Or it's better to change the server and make sure that the date is being inserted into database IS already converted to Hijri Calendar ? If so, where I'm suppose to start apply my change ?

Regards.

3
Avatar
Descartar
Martin

Probably you should indicate which operating system you will use. It may have bearing.

Pooria Madani
Autor

My server is Linux (Ubuntu or CentOS )

prakash

I don't want to change server date in to hijri I need some fields to enter Arabic date widget it is very important for person from midileast

Omid Rezvani

Pooria I checked your application, but is there a way to change the whole calendar?

Serpent Consulting Services Pvt. Ltd.

We've https://www.odoo.com/apps/modules/11.0/web_hijri_date/ now.

Avatar
Fabien Pinckaers (fp)
Mejor respuesta

Here is the way OpenERP handles data that are location specific:

  • Data are stored in the database in UTC (not depending on the timezone of your users)
  • When the client receives the data, it translates it according to the timezone of the user which is on the global context that comes from the user preferences (so, the date/time you see on the screen is not the same than the one in the database)
  • The client sends back the new dates to the server under the UTC format

For information, the fields that are in the global context come from the context_get() method on the res.users object. You may have to overwrite this method if you want to add a new field in the global context which is sent to the client when the user logs in .

So, I think you should develop a module that:

  • _inherit the res.users object to add a preference field.selection whith the calendar he uses (gregorian / Solar Hijri)
  • overwrite the default calendar widget in the web client to use a .JS widget that support Solar Hijri calendar
  • do the translations between Solar Hijri and UTC when reading/writing dates in the widget (the current widget alreaady does this for all UTC timezones.)
5
Avatar
Descartar
Pooria Madani
Autor

Thanks for ur answer, I don't have any issue with time zone setting. All I'm trying to do is to make sure that all the recorded dates in the system is based on Solar Hijri Calendar, and but all I mean all the message that are sent, all the invoice transaction and etc.

Pooria Madani
Autor

So if I change the Calendar widget and you said, what will happen to the automatic "date" assignment that system does, like send/receiving messages, or date of the comments posted bellow invoices and etc ?

prakash

I need to add arabic date in some field like widget I dont wand keep to change all openerp in to Arabic date, any help ?

Ali

Thanks for the instructions. I will try to implement the proposed solution as I have the same requirements for my system.

Omid Rezvani

There are many languages that use different calendars, is there a direct way to change the calendar? Is there a template for doing this?

Avatar
Megha Patel
Mejor respuesta

Pooria Madani

You may find your solution here,

https://apps.odoo.com/apps/modules/11.0/web_hijri_date/

0
Avatar
Descartar
Avatar
salman
Mejor respuesta

Any advice regarding Hijri Calendar Widget..

see the below url

https://www.odoo.com/fr_FR/forum/help-1/question/urgent-islamic-date-widget-issue-73745

0
Avatar
Descartar
Serpent Consulting Services Pvt. Ltd.

We've https://www.odoo.com/apps/modules/11.0/web_hijri_date/ now.

¿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
v17 schedule wrong date
calendar date
Avatar
0
may 24
2643
how to change the calendar format ?
calendar date
Avatar
Avatar
1
mar 15
5887
Date Widget Autocomplete in Odoo16
calendar date autocomplete
Avatar
Avatar
1
jun 23
3603
Calendar with multiple events
calendar date events
Avatar
1
jun 15
5995
How make field.date can only be selected through calendar?
v6.1 calendar date
Avatar
Avatar
1
mar 15
6292
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