~agilebg/server-env-tools/ea_import_fix_default_false_value

« back to all changes in this revision

Viewing changes to ea_import/ea_import_template_line.py

  • Committer: Lorenzo Battistini
  • Date: 2013-07-30 14:03:07 UTC
  • Revision ID: lorenzo.battistini@agilebg.com-20130730140307-k73sbr3w8ph0k90t
[FIX] avoid set default value if value is False

Show diffs side-by-side

added added

removed removed

Lines of Context:
232
232
                        result = target_obj_pool.search(cr, uid, [(template_line.related_field.name, '=', target_string)], context=context)
233
233
                        if testing:
234
234
                            test_many2one_result(result, template_line, target_string)
235
 
                            return result and result[0] or False
 
235
                            return result and result[0] or None
236
236
                        elif not result:
237
237
                            return None
238
238
                        else: