Merge lp:~credativ/openobject-addons/trunk-csv-import-domain into lp:openobject-addons

Proposed by Craig Gowing (credativ)
Status: Needs review
Proposed branch: lp:~credativ/openobject-addons/trunk-csv-import-domain
Merge into: lp:openobject-addons
Diff against target: 11 lines (+1/-0)
1 file modified
base_import/models.py (+1/-0)
To merge this branch: bzr merge lp:~credativ/openobject-addons/trunk-csv-import-domain
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+216990@code.launchpad.net

Description of the change

When importing CSV files, allow a domain to be specified so that unique matches to records can be made when either name search is not accurate enough (too many matches) or the external XML ID does not exist or is unknown.

The field is similar to /id and /.id, it is defined as /.domain
The domain is safe_eval'ed and a standard search is run on the object using the domain, so correct security limitations will be in effect.

https://blueprints.launchpad.net/openobject-addons/+spec/csv-import-domain

To post a comment you must log in.
Revision history for this message
Craig Gowing (credativ) (craiggowing) wrote :

Unmerged revisions

9377. By Craig Gowing (credativ)

[IMP] Allow domain searches on CSV import

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'base_import/models.py'
2--- base_import/models.py 2014-03-13 09:19:20 +0000
3+++ base_import/models.py 2014-04-24 07:49:45 +0000
4@@ -110,6 +110,7 @@
5 f['fields'] = [
6 dict(f, name='id', string=_("External ID")),
7 dict(f, name='.id', string=_("Database ID")),
8+ dict(f, name='.domain', string=_("Domain")),
9 ]
10 elif field['type'] == 'one2many' and depth:
11 f['fields'] = self.get_fields(

Subscribers

People subscribed via source and target branches

to all changes: