← Back to team overview

openerp-dev-web team mailing list archive

Re: lp:~openerp-dev/openobject-server/trunk-import_data_imp-tfr into lp:openobject-server

 

    Modification

    first mode like m2m : if there is a list of xml_id/id/name separate by ','

    import them with a [(6,0,[1,2,3])]

    in this cas don't import other data

    ex :

    "name","address/id" 

    "bidon 2","truc_1,truc_2"

    Second mode : one line per object in the o2m

    Limitation, can import only on o2m 

    avoid this

    "id","name","address/id","address/name","phonecall_ids/id","phonecall_ids/name","phonecall_ids/date","phonecall_ids/duration" 

    "bidon 2","bidon 2","truc_1","name 2","t3","test 3","2011-05-02 14:39:13","1" 

    "bidon 2","bidon 2","truc_2","name 3","t3","test 3","2011-05-02 14:39:13","1" 

    "bidon 2","bidon 2","truc_2","name 3","t2","test 2","2011-05-02 14:39:08","1" 

    "bidon 2","bidon 2","truc_2","name 3","t1","test","2011-05-02 14:39:03","1" 

    This work

    "id","name","address/id","address/name"

    "bidon 2","bidon 2","truc_1","name 2"

    "bidon 2","bidon 2","truc_2","name 3"

    don't create xml_id when import new data

    in previous exemple if truc_1 and truc_2 are non existing record two record will be create, but not link to the xml id

    Link is create using a 4, this mode don't erase previous existing data in the o2m




need to fix export data : to be compatible
-- 
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-import_data_imp-tfr/+merge/59663
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-server/trunk-import_data_imp-tfr.


References