← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 776425] [NEW] Crash on inventory export

 

Public bug reported:

--Steps to reproduce the issue you have observed--

The physical inventory was to be exported using the GTK client by
accessing it through Warehouse -> Inventory Control -> Physical
Inventories then choosing Form -> Export data... from the menu. All
fields are selected for export with the CSV format chosen and the export
button is pressed.

--The result you observed--

An application error occurs (See Below).  The information in the
openerp-server.log is similar to the error below.

--The result you expected--

The export should create a CSV file containing the inventory data.

--The platform/OpenERP version your are using--

This is occurring when using a OpenERP 6.0.2 server (including web)
running on an Ubuntu 10.04 x86_64 server with a 2.6.32-31-server kernel.
The OpenERP 6.0.2 GTK client is running on a computer running Windows XP
SP3.

--Additional Information--

The line reported in the error (stock_inventory_line 94) is the first
line of the first physical inventory.  It's contents are:

id;create_uid;create_date;write_date;write_uid;product_id;product_uom;prod_lot_id;company_id;inventory_id;product_qty;location_id
94;1;"2011-04-28 16:02:05.022978";"2011-04-29 11:09:32.008454";3;25054;1;;1;30;3.000;19

Note: When attempting to import physical inventory data a similar error
is encountered.

This bug has been filed on the core OpenERP framework page as I am
seeing the error in the server log and have assumed it is a problem
getting the information to the GTK client. I am unsure how to export
this data from the web interface so am unable to compare. Please let me
know if this is in the wrong location so I can place it in the correct
one, or if any additional information is required.

--Error Message--

Environment Information : 
System : Windows-XP-5.1.2600-SP3
OS Name : nt
Operating System Release : XP
Operating System Version : 5.1.2600
Operating System Architecture : 32bit
Operating System Locale : en_CA.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 "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 679, in export_data
    datas += self.__export_row(cr, uid, row, fields_to_export, context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 631, in __export_row
    if isinstance(rr[name_relation], browse_record):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 189, in __getitem__
    name, self))
KeyError: "Field 'name' does not exist in object 'browse_record(stock.inventory.line, 94)'"

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

-- 
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/776425

Title:
  Crash on inventory export

Status in OpenERP Server:
  New

Bug description:
  --Steps to reproduce the issue you have observed--

  The physical inventory was to be exported using the GTK client by
  accessing it through Warehouse -> Inventory Control -> Physical
  Inventories then choosing Form -> Export data... from the menu. All
  fields are selected for export with the CSV format chosen and the
  export button is pressed.

  --The result you observed--

  An application error occurs (See Below).  The information in the
  openerp-server.log is similar to the error below.

  --The result you expected--

  The export should create a CSV file containing the inventory data.

  --The platform/OpenERP version your are using--

  This is occurring when using a OpenERP 6.0.2 server (including web)
  running on an Ubuntu 10.04 x86_64 server with a 2.6.32-31-server
  kernel.  The OpenERP 6.0.2 GTK client is running on a computer running
  Windows XP SP3.

  --Additional Information--

  The line reported in the error (stock_inventory_line 94) is the first
  line of the first physical inventory.  It's contents are:

  id;create_uid;create_date;write_date;write_uid;product_id;product_uom;prod_lot_id;company_id;inventory_id;product_qty;location_id
  94;1;"2011-04-28 16:02:05.022978";"2011-04-29 11:09:32.008454";3;25054;1;;1;30;3.000;19

  Note: When attempting to import physical inventory data a similar
  error is encountered.

  This bug has been filed on the core OpenERP framework page as I am
  seeing the error in the server log and have assumed it is a problem
  getting the information to the GTK client. I am unsure how to export
  this data from the web interface so am unable to compare. Please let
  me know if this is in the wrong location so I can place it in the
  correct one, or if any additional information is required.

  --Error Message--

  Environment Information : 
  System : Windows-XP-5.1.2600-SP3
  OS Name : nt
  Operating System Release : XP
  Operating System Version : 5.1.2600
  Operating System Architecture : 32bit
  Operating System Locale : en_CA.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 "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 489, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 599, in dispatch
      res = fn(db, uid, *params)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 679, in export_data
      datas += self.__export_row(cr, uid, row, fields_to_export, context)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 631, in __export_row
      if isinstance(rr[name_relation], browse_record):
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 189, in __getitem__
      name, self))
  KeyError: "Field 'name' does not exist in object 'browse_record(stock.inventory.line, 94)'"


Follow ups

References