can not import Partner-Language field

Bug #1126944 reported by Max Qi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Enapps OpenERP CSV Import Tool
New
Undecided
Unassigned

Bug Description

openerp-6.1-20130129-002230-source,windows xp

- create a new database without demo data
- select UK language
- install ea_import and ea_import_examples,select China Accounting
- Edit the template "res.partner" to add the field "Language" in the Template Line
  Field name:Language,Default value:en_GB,Use only defaults:true,(the others are false)
- open the "partners" import chain
- select the file "partner data.csv"
- run the import
- Exception: TypeError: 'function' object is not iterable

Thanks!

Revision history for this message
Max Qi (qimiaoqimiao) wrote :

Server Traceback (most recent call last):
  File "D:\openerp-6.1-20130129-002230-source\openerp\addons\web\common\http.py", line 593, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "D:\openerp-6.1-20130129-002230-source\openerp\netsvc.py", line 360, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "D:\openerp-6.1-20130129-002230-source\openerp\service\web_services.py", line 586, in dispatch
    res = fn(db, uid, *params)
  File "D:\openerp-6.1-20130129-002230-source\openerp\osv\osv.py", line 167, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "D:\openerp-6.1-20130129-002230-source\openerp\osv\osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "D:\openerp-6.1-20130129-002230-source\openerp\osv\osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "D:\openerp-6.1-20130129-002230-source\openerp\osv\osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "D:\openerp-6.1-20130129-002230-source\openerp\addons\ea_import\ea_import_chain.py", line 97, in import_to_db
    result_id = chain_link.template_id.generate_record(record_list, context=context)
  File "D:\openerp-6.1-20130129-002230-source\openerp\osv\orm.py", line 368, in function_proxy
    return attr(self._cr, self._uid, [self._id], *args, **kwargs)
  File "D:\openerp-6.1-20130129-002230-source\openerp\addons\ea_import\ea_import_template.py", line 49, in generate_record
    value = template_line.get_field(record_list, testing=True)
  File "D:\openerp-6.1-20130129-002230-source\openerp\osv\orm.py", line 368, in function_proxy
    return attr(self._cr, self._uid, [self._id], *args, **kwargs)
  File "D:\openerp-6.1-20130129-002230-source\openerp\addons\ea_import\ea_import_template_line.py", line 176, in get_field
    return template_line.get_selection_from_name(target_string)
  File "D:\openerp-6.1-20130129-002230-source\openerp\osv\orm.py", line 368, in function_proxy
    return attr(self._cr, self._uid, [self._id], *args, **kwargs)
  File "D:\openerp-6.1-20130129-002230-source\openerp\addons\ea_import\ea_import_template_line.py", line 232, in get_selection_from_name
    selection_dict = dict(target_model_pool._columns[template_line.target_field.name].selection)
TypeError: 'function' object is not iterable

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.