Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3 Răspunsuri
1726 Vizualizări

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.

Imagine profil
Abandonează
Cel mai bun răspuns

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


Imagine profil
Abandonează
Autor Cel mai bun răspuns

I meant in the Odoo import dialog:


Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
apr. 25
1290
0
oct. 24
1130
2
mai 24
3806
0
apr. 24
1263
2
iul. 23
2050