Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
6139 Переглядів

I'm trying to import suppliers.  Some are for foreign companies that have no state codes, which makes the import process return errors.  Looking in the database, I see that field "state" in "res.partner" is nullable, so why can't I import a blank field? I have also tried replacing empty strings with "NULL" and "(null)", but neither works.
 

Аватар
Відмінити
Автор Найкраща відповідь

What ended up working for me was to open the .csv file in OpenOffice, select the blank fields, and hit the "Delete" key.  I then got a pop-up asking if I wanted to delete numbers, text, etc., or "Delete All".  I chose "Delete All", then re-saved the file.  After that, it validated and imported without problems!  Hope this helps someone else when they run into the same issue.

Аватар
Відмінити
Найкраща відповідь

I suspect that the fields of your initial csv file were not blank but filled with one symbol/caracter like ' which you cannot see by default.

 

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
трав. 25
1322
Import from Winbooks Вирішено
4
трав. 25
5031
1
серп. 24
2323
1
лют. 24
3088
3
жовт. 23
11124