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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Financeiro
- Inventário
- PoS
- Project
- MRP
Esta pergunta foi sinalizada
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.
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-sePublicações relacionadas | Respostas | Visualizações | Atividade | |
---|---|---|---|---|
|
2
mai. 25
|
1316 | ||
Import from Winbooks
Resolvido
|
|
4
mai. 25
|
5011 | |
|
1
ago. 24
|
2319 | ||
|
1
fev. 24
|
3084 | ||
|
3
out. 23
|
11118 |