← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 769638] Re: 6.0.2: Import products in various languages from one csv-file

 

Environment Information : 
System : Windows-Vista-6.1.7601-SP1
OS Name : nt
Operating System Release : Vista
Operating System Version : 6.1.7601
Operating System Architecture : 32bit
Operating System Locale : de_CH.cp1252
Python Version : 2.5.2
OpenERP-Client Version : 6.0.2
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/home/erp/openobject-server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/erp/openobject-server/bin/service/web_services.py", line 596, in dispatch
    security.check(db,uid,passwd)
  File "/home/erp/openobject-server/bin/service/security.py", line 43, in check
    pool = pooler.get_pool(db)
  File "/home/erp/openobject-server/bin/pooler.py", line 79, in get_pool
    pool = get_db_and_pool(db_name, force_demo, status, update_module)[1]
  File "/home/erp/openobject-server/bin/pooler.py", line 39, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/home/erp/openobject-server/bin/addons/__init__.py", line 883, in load_modules
    processed_modules.extend(load_module_graph(cr, graph, status, report=report, skip_modules=processed_modules))
  File "/home/erp/openobject-server/bin/addons/__init__.py", line 748, in load_module_graph
    load_init_update_xml(cr, m, idref, mode, kind)
  File "/home/erp/openobject-server/bin/addons/__init__.py", line 635, in load_init_update_xml
    tools.convert_csv_import(cr, m, os.path.basename(filename), fp.read(), idref, mode=mode, noupdate=noupdate)
  File "/home/erp/openobject-server/bin/tools/convert.py", line 947, in convert_csv_import
    result, rows, warning_msg, dummy = pool.get(model).import_data(cr, uid, fields, datas,mode, module, noupdate, filename=fname_partial)
  File "/home/erp/openobject-server/bin/osv/orm.py", line 868, in import_data
    process_liness(self, datas, [], current_module, self._name, fields_def, position=position)
  File "/home/erp/openobject-server/bin/osv/orm.py", line 791, in process_liness
    if fields_def[field[len(prefix)]]['type']=='one2many':
KeyError: 'slx_name2:lang=de_DE'



**************************************
It seems that I don't have the correct notation in csv-file to import languages. What is the correct notation?

Thank you for your help
René

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/769638

Title:
  6.0.2: Import products in various languages from one csv-file

Status in OpenERP Modules (addons):
  Incomplete

Bug description:
  I try to import products in various languages from one csv-file with the following language-notation:
  id, name, name:lang=fr_FR, name:lang=de, .....
  But the import for the translated name is not possible and always causes a "KeyError" for the key "name:lang=....."
  Is this a bug or do I use a wrong notation?


References