~elbati/enapps-csv-import-tool/fix-get_related_id

« back to all changes in this revision

Viewing changes to ea_import/ea_import_template_line.py

  • Committer: Lorenzo Battistini
  • Date: 2012-12-18 08:12:33 UTC
  • Revision ID: lorenzo.battistini@agilebg.com-20121218081233-twobopwweiykyy7z
[FIX] many2one_rel_type == 'template' too

Show diffs side-by-side

added added

removed removed

Lines of Context:
222
222
                        result = template_line.related_template_id.get_related_id(input_list)
223
223
                        if testing:
224
224
                            test_many2one_result(result, template_line, target_string)
 
225
                        if not result:
 
226
                            return None
225
227
                        return result[0]
226
228
            else:
227
229
                continue