Skip to Content
Menú
This question has been flagged
3 Respostes
1710 Vistes

When importing any excel file with a date I get this error. locale is es_ES although en_US is also installed (cannot be unistalled). In the file the date is displayed as 31/01/2025 and formatted as date. The fact thar it shows 2025-01-31 tells me that in first instance Odoo ir correctly interpreting the date but in the process of importing is looking for a different format.

Even tried importing a freshly exported file right from odoo...


Only workwaround i´ve found is to import using CSV, but need excel functionality to work.

Avatar
Descartar
Best Answer

Hi,

This error happens because Odoo is trying to parse the date using the format you specified (%d/%m/%Y), but the actual date in the file is already in the format YYYY-MM-DD (2025-01-31), which doesn't match.

solution:

1. Adjust the date format in Excel to match odoo import format

Select the date column in Excel. Format -> Number -> Custom date and time


set custom date as (%d/%m/%Y)


OR,


2. Adjust the date format in Odoo to match in Excel

Setting -> Translations->Language

Select your language and change the date format.




Hope it helps


Avatar
Descartar
Autor Best Answer

I meant in the Odoo import dialog:


Avatar
Descartar
Best Answer

>>  The fact that it shows 2025-01-31 tells me that in first instance Odoo is correctly interpreting the date

Are you sure Odoo isn't just showing you what is stored in the field?  

What is shown when you click the Formula Bar?

(example to show how Excel can display and store two different values)


Try either of these two options:

A column with no format containing and displaying 31/01/2025

A column with the following format containing and displaying 31/01/2025

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
d’abr. 25
1282
0
d’oct. 24
1126
2
de maig 24
3771
0
d’abr. 24
1260
2
de jul. 23
2048