This can be easily fixed by just surrounding the  "datas.append"  line
on win_import.py...

        try:
            datas.append(map(lambda 
x:x.decode(csv_data['combo']).encode('utf-8'), line))
        except:
            common.warning(_('Error on text file.\nCorrect %s and try again !') 
% (line,), _('Import Error.'), parent=parent)
            return False

-- 
You received this bug notification because you are a member of OpenERP
sa GTK client R&D, which is a bug assignee.
https://bugs.launchpad.net/bugs/828959

Title:
  Import CSV file fails

Status in OpenERP GTK Client:
  Confirmed

Bug description:
  Hi,  when you try to import a CSV file and it has any non UTF-8
  character, the load fails with no warning...

  on win_import.py, if a try.... except is added this can be avoided,
  like...

          try:
              datas.append(map(lambda 
x:x.decode(csv_data['combo']).encode('utf-8'), line))
          except:
              common.warning(_('Error on text file.\nCorrect %s and try again 
!') % (line,), _('Import Error.'), parent=parent)
              return False

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client/+bug/828959/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to