crash when there is a "key field for updating" that is not a string
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Enapps OpenERP CSV Import Tool |
New
|
Undecided
|
Unassigned |
Bug Description
latest openerp 6.1 [server r4291, addons r7036, web r2469] with enapps-
Hi!
To reproduce:
- create a new database with demo data
- select UK language
- install ea_import_examples
- open the "partners" import chain
- select the file "partner data.csv"
- run the import
- you get AttributeError: 'int' object has no attribute 'encode'
Tentative analysis: the problem has to do with "required for updating" fields that are not strings (eg floats or m2o). The problem seems to happen here
http://
at line 95.
A possible fix could be to check there if we actually have a string and do utf8 work only in that case.
What I find surprising is that demo data is broken.
Thanks!
Related branches
- Enapps Ltd OpenERP Partner London UK: Pending requested
-
Diff: 15 lines (+4/-1)1 file modifiedea_import/ea_import_template.py (+4/-1)