← Back to team overview

credativ team mailing list archive

[Bug 924996] [NEW] 'field0' error while data export (base_report_creator)

 

Public bug reported:

Hello ,

I create a new customized report with the module base_report_creator,
then I open it, and try to export the records list to a CSV file, when I
do that, knowing that i checked the "compatible import" checkbox, I get
an error, here is the Traceback :

Environment Information : 
System : Linux-2.6.32-37-generic-i686-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID:	Ubuntu
Description:	Ubuntu 10.04.3 LTS
Release:	10.04
Codename:	lucid
Operating System Release : 2.6.32-37-generic
Operating System Version : #81-Ubuntu SMP Fri Dec 2 20:35:14 UTC 2011
Operating System Architecture : 32bit
Operating System Locale : fr_FR.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 6.0.3
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/opt/Instances/Prod/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/opt/Instances/Prod/bin/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/opt/Instances/Prod/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/Instances/Prod/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/Instances/Prod/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/Instances/Prod/bin/osv/orm.py", line 681, in export_data
    datas += self.__export_row(cr, uid, row, fields_to_export, context)
  File "/opt/Instances/Prod/bin/osv/orm.py", line 595, in __export_row
    r = r[f[i]]
  File "/opt/Instances/Prod/bin/osv/orm.py", line 189, in __getitem__
    name, self))
KeyError: "Field 'field0' does not exist in object 'browse_record(base_report_creator_report.result, 8)'"

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Framework Experts, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/924996

Title:
  'field0' error while data export (base_report_creator)

Status in OpenERP Addons (modules):
  New

Bug description:
  Hello ,

  I create a new customized report with the module base_report_creator,
  then I open it, and try to export the records list to a CSV file, when
  I do that, knowing that i checked the "compatible import" checkbox, I
  get an error, here is the Traceback :

  Environment Information : 
  System : Linux-2.6.32-37-generic-i686-with-Ubuntu-10.04-lucid
  OS Name : posix
  Distributor ID:	Ubuntu
  Description:	Ubuntu 10.04.3 LTS
  Release:	10.04
  Codename:	lucid
  Operating System Release : 2.6.32-37-generic
  Operating System Version : #81-Ubuntu SMP Fri Dec 2 20:35:14 UTC 2011
  Operating System Architecture : 32bit
  Operating System Locale : fr_FR.UTF8
  Python Version : 2.6.5
  OpenERP-Client Version : 6.0.3
  Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
    File "/opt/Instances/Prod/bin/netsvc.py", line 489, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/opt/Instances/Prod/bin/service/web_services.py", line 599, in dispatch
      res = fn(db, uid, *params)
    File "/opt/Instances/Prod/bin/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/opt/Instances/Prod/bin/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/opt/Instances/Prod/bin/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/opt/Instances/Prod/bin/osv/orm.py", line 681, in export_data
      datas += self.__export_row(cr, uid, row, fields_to_export, context)
    File "/opt/Instances/Prod/bin/osv/orm.py", line 595, in __export_row
      r = r[f[i]]
    File "/opt/Instances/Prod/bin/osv/orm.py", line 189, in __getitem__
      name, self))
  KeyError: "Field 'field0' does not exist in object 'browse_record(base_report_creator_report.result, 8)'"

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/924996/+subscriptions


Follow ups

References