orm: import: import of 'reference' fields with bad data gives useless error message

Bug #1014947 reported by Chris Forbes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Confirmed
Low
OpenERP's Framework R&D

Bug Description

Affected version: 6.1.1

When importing fields of type 'reference' from csv, if the field data is invalid (as generated by the exporter, but that's another problem), the error message given is not helpful:

"need more than 1 value to unpack"

The attached patch adds a useful error message, including the field value that is failing validation.

Revision history for this message
Chris Forbes (chrisf-ijw) wrote :
Revision history for this message
Chris Forbes (chrisf-ijw) wrote :

I don't believe this is a duplicate. It's *related*, sure, but this bug is about the poor error message when invalid data is provided. #994996 is about the exporter producing invalid data.

Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Low
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.