Mapping of boolean fields

Bug #998078 reported by Juan Rial (OpenERP)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Enapps OpenERP CSV Import Tool
Fix Released
Undecided
Unassigned

Bug Description

Boolean fields deserve special treatment: they may be encoded as true/false, yes/no, 1/0, ... Currently there is no mechanism for specifying this encoding.

I propose adding two fields to the form when detecting a boolean field: "true value" and "false value". This has two advantages:
1) It's more flexible than hardcoding all known values for "true" and "false" and match those; also works for files in non-english.
2) It allows you to map true to false and vice versa. Example in my current project that would need this: the system we're importing from contains a flag "isdeleted" which is the logical negation of OpenERP's "active" field.

Revision history for this message
Vadim - Enapps LTD (vadim-enapps) wrote :

Very good idea Juan, please do the patch and we will merge it in

Revision history for this message
Enapps Ltd OpenERP Partner London UK (enapps-london-uk) wrote :

fixed in latest commit

Changed in enapps-csv-import-tool:
status: New → Fix Released
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.