Merge lp:~jri-openerp/enapps-csv-import-tool/boolean_false_never_written into lp:~enapps-london-uk/enapps-csv-import-tool/old_trunk

Proposed by Juan Rial (OpenERP) on 2012-05-14
Status: Needs review
Proposed branch: lp:~jri-openerp/enapps-csv-import-tool/boolean_false_never_written
Merge into: lp:~enapps-london-uk/enapps-csv-import-tool/old_trunk
Diff against target: 15 lines (+2/-2)
1 file modified
ea_import/ (+2/-2)
To merge this branch: bzr merge lp:~jri-openerp/enapps-csv-import-tool/boolean_false_never_written
Reviewer Review Type Date Requested Status
Enapps Ltd OpenERP Partner London UK 2012-05-14 Pending
Review via email:

Description of the change

[FIX] LP Bug #999127: in generate_record, change check for existence of value from its boolean value to its equality to None

To post a comment you must log in.

Unmerged revisions

3. By Juan Rial (OpenERP) on 2012-05-14

[FIX] LP Bug #999127: change check for existence of value

2. By Enapps Ltd OpenERP Partner London UK on 2012-04-10

fix invalid model reference

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ea_import/'
2--- ea_import/ 2012-04-10 11:00:44 +0000
3+++ ea_import/ 2012-05-14 13:49:19 +0000
4@@ -76,9 +76,9 @@
5 for template_line in template.line_ids:
6 field_name =
7 value = template_line.get_field(record_list, testing=True)
8- if template_line.default_value and not value:
9+ if template_line.default_value and value is None:
10 value = template_line.default_value
11- if value:
12+ if not value is None:
13 record.update({field_name: value})
14 if template_line.key_field:
15 upd_key.append((, '=', value))


People subscribed via source and target branches