~elbati/enapps-csv-import-tool/allowing_regexp_replace_by_empty_string

Viewing all changes in revision 8.

  • Committer: Lorenzo Battistini
  • Date: 2012-09-19 14:18:47 UTC
  • Revision ID: lorenzo.battistini@agilebg.com-20120919141847-h0sf11w83lrsak5y
[FIX] when importing m2o by template,
if csv field is empty, the get_related_id method should not return the list of every record for current model.
This happens when key=[], so
    self.low_level_search(cr, uid, [template.id], key, context=context)
returns the list of all records

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: