跳至内容
菜单
此问题已终结
2 回复
6117 查看

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.

 

形象
丢弃
相关帖文 回复 查看 活动
2
5月 25
1313
4
5月 25
5003
1
8月 24
2314
1
2月 24
3079
3
10月 23
11115