can not import Partner-Language field
Bug #1126944 reported by
Max Qi
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Enapps OpenERP CSV Import Tool |
New
|
Undecided
|
Unassigned |
Bug Description
openerp-
- create a new database without demo data
- select UK language
- install ea_import and ea_import_
- Edit the template "res.partner" to add the field "Language" in the Template Line
Field name:Language,
- open the "partners" import chain
- select the file "partner data.csv"
- run the import
- Exception: TypeError: 'function' object is not iterable
Thanks!
To post a comment you must log in.
Server Traceback (most recent call last): 6.1-20130129- 002230- source\ openerp\ addons\ web\common\ http.py" , line 593, in send netsvc. dispatch_ rpc(service_ name, method, args) 6.1-20130129- 002230- source\ openerp\ netsvc. py", line 360, in dispatch_rpc getService( service_ name).dispatch( method, params) 6.1-20130129- 002230- source\ openerp\ service\ web_services. py", line 586, in dispatch 6.1-20130129- 002230- source\ openerp\ osv\osv. py", line 167, in execute_kw 6.1-20130129- 002230- source\ openerp\ osv\osv. py", line 121, in wrapper 6.1-20130129- 002230- source\ openerp\ osv\osv. py", line 176, in execute 6.1-20130129- 002230- source\ openerp\ osv\osv. py", line 164, in execute_cr 6.1-20130129- 002230- source\ openerp\ addons\ ea_import\ ea_import_ chain.py" , line 97, in import_to_db template_ id.generate_ record( record_ list, context=context) 6.1-20130129- 002230- source\ openerp\ osv\orm. py", line 368, in function_proxy 6.1-20130129- 002230- source\ openerp\ addons\ ea_import\ ea_import_ template. py", line 49, in generate_record line.get_ field(record_ list, testing=True) 6.1-20130129- 002230- source\ openerp\ osv\orm. py", line 368, in function_proxy 6.1-20130129- 002230- source\ openerp\ addons\ ea_import\ ea_import_ template_ line.py" , line 176, in get_field line.get_ selection_ from_name( target_ string) 6.1-20130129- 002230- source\ openerp\ osv\orm. py", line 368, in function_proxy 6.1-20130129- 002230- source\ openerp\ addons\ ea_import\ ea_import_ template_ line.py" , line 232, in get_selection_ from_name model_pool. _columns[ template_ line.target_ field.name] .selection)
File "D:\openerp-
return openerp.
File "D:\openerp-
result = ExportService.
File "D:\openerp-
res = fn(db, uid, *params)
File "D:\openerp-
return self.execute(db, uid, obj, method, *args, **kw or {})
File "D:\openerp-
return f(self, dbname, *args, **kwargs)
File "D:\openerp-
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "D:\openerp-
return getattr(object, method)(cr, uid, *args, **kw)
File "D:\openerp-
result_id = chain_link.
File "D:\openerp-
return attr(self._cr, self._uid, [self._id], *args, **kwargs)
File "D:\openerp-
value = template_
File "D:\openerp-
return attr(self._cr, self._uid, [self._id], *args, **kwargs)
File "D:\openerp-
return template_
File "D:\openerp-
return attr(self._cr, self._uid, [self._id], *args, **kwargs)
File "D:\openerp-
selection_dict = dict(target_
TypeError: 'function' object is not iterable