credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #05890
[Merge] lp:~credativ/openobject-addons/trunk-csv-import-domain into lp:openobject-addons
Craig Gowing (credativ) has proposed merging lp:~credativ/openobject-addons/trunk-csv-import-domain into lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~credativ/openobject-addons/trunk-csv-import-domain/+merge/216990
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
--
https://code.launchpad.net/~credativ/openobject-addons/trunk-csv-import-domain/+merge/216990
Your team credativ is subscribed to branch lp:~credativ/openobject-addons/trunk-csv-import-domain.
=== modified file 'base_import/models.py'
--- base_import/models.py 2014-03-13 09:19:20 +0000
+++ base_import/models.py 2014-04-24 07:49:45 +0000
@@ -110,6 +110,7 @@
f['fields'] = [
dict(f, name='id', string=_("External ID")),
dict(f, name='.id', string=_("Database ID")),
+ dict(f, name='.domain', string=_("Domain")),
]
elif field['type'] == 'one2many' and depth:
f['fields'] = self.get_fields(
References