Craig Gowing (credativ) has proposed merging 
lp:~credativ/openobject-addons/7.0-csv-import-domain into 
lp:openobject-addons/7.0.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~credativ/openobject-addons/7.0-csv-import-domain/+merge/216987

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/7.0-csv-import-domain/+merge/216987
Your team credativ is subscribed to branch 
lp:~credativ/openobject-addons/7.0-csv-import-domain.
=== modified file 'base_import/models.py'
--- base_import/models.py	2014-03-13 08:28:13 +0000
+++ base_import/models.py	2014-04-24 07:36:27 +0000
@@ -111,6 +111,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(

-- 
Mailing list: https://launchpad.net/~credativ
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~credativ
More help   : https://help.launchpad.net/ListHelp

Reply via email to