c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #23318
[Bug 774057] Re: KeyError: "Field 'name' does not exist in object 'browse_record(stock.inventory.line, 1)'"
I receive the same error when trying to export however am also unable to
import (with same KeyError). Will this bug address the import problem
as well?
--
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/774057
Title:
KeyError: "Field 'name' does not exist in object
'browse_record(stock.inventory.line, 1)'"
Status in OpenERP Modules (addons):
Confirmed
Bug description:
When exporting data from a physical Inventories (using the demo data
included with OpenERP), I experience the following error (the server
is also 6.0.2)
Environment Information :
System : Linux-2.6.32-31-generic-x86_64-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 10.04.2 LTS
Release: 10.04
Codename: lucid
Operating System Release : 2.6.32-31-generic
Operating System Version : #61-Ubuntu SMP Fri Apr 8 18:25:51 UTC 2011
Operating System Architecture : 64bit
Operating System Locale : en_US.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 6.0.2
Last revision No. & ID :1838 launchpad_translations_on_behalf_of_openerp-20110425054307-fukwspn00ayrz0ij
Traceback (most recent call last):
File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/service/web_services.py", line 599, in dispatch
res = fn(db, uid, *params)
File "/home/dell/Documents/Projects/openerp-server-6.0.x/bin/addons/audittrail/audittrail.py", line 511, in execute
res = my_fct(db, uid, model, method, *args)
File "/home/dell/Documents/Projects/openerp-server-6.0.x/bin/addons/audittrail/audittrail.py", line 495, in my_fct
return fct_src(db, uid, model, method, *args)
File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/osv/orm.py", line 679, in export_data
datas += self.__export_row(cr, uid, row, fields_to_export, context)
File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/osv/orm.py", line 631, in __export_row
if isinstance(rr[name_relation], browse_record):
File "/home/dell/Documents/Projects/openerp-server-6.0.2/bin/osv/orm.py", line 189, in __getitem__
name, self))
KeyError: "Field 'name' does not exist in object 'browse_record(stock.inventory.line, 1)'"
References