bug on export reference field

Bug #994996 reported by Stephane SALAH
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Confirmed
Low
OpenERP's Framework R&D

Bug Description

on export reference fields the csv result is not correct.

for exemple with ir.property with value ref, in the csv, yo got the value of the field and normally you should have model and id of the record.

so when you import the csv file you got the error bellow.

Error during import: Line 5 : need more than 1 value to unpack.

Thanks to correct it please

Stephane

summary: - [6.1] bug on export reference field
+ bug on export reference field
Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Chris Forbes (chrisf-ijw) wrote :

Here is a patch which exports 'reference' fields as (model,external-id) pairs.

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

Here is an additional patch which adds xml_id translation to the importer for reference fields.

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

With both of these patches, roundtrip of reference fields (ir.property res_id and value_reference, for example) works.

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.