c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #16936
[Bug 722684] [NEW] Physical Inventory Export fails when Inventories/ID is included
Public bug reported:
Steps to reproduce:
1) Navigate to Stock > Inventory Control > Physical Inventories
2) Click on the Export link in the sidebar.
3) Add Inventories/ID to the "Fields to export" list.
4) Click "Export to File".
Expected behaviour:
A CSV file.
Actual behaviour:
Traceback (most recent call last):
File "/usr/share/openerp-server/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/usr/share/openerp-server/service/web_services.py", line 599, in dispatch
res = fn(db, uid, *params)
File "/usr/share/openerp-server/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/share/openerp-server/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/share/openerp-server/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/share/openerp-server/osv/orm.py", line 671, in export_data
datas += self.__export_row(cr, uid, row, fields_to_export, context)
File "/usr/share/openerp-server/osv/orm.py", line 623, in __export_row
if isinstance(rr.name, browse_record):
File "/usr/share/openerp-server/osv/orm.py", line 287, in __getattr__
raise AttributeError(e)
AttributeError: "Field 'name' does not exist in object 'browse_record(stock.inventory.line, 1)'"
** Affects: openobject-addons
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/722684
Title:
Physical Inventory Export fails when Inventories/ID is included
Status in OpenERP Modules (addons):
New
Bug description:
Steps to reproduce:
1) Navigate to Stock > Inventory Control > Physical Inventories
2) Click on the Export link in the sidebar.
3) Add Inventories/ID to the "Fields to export" list.
4) Click "Export to File".
Expected behaviour:
A CSV file.
Actual behaviour:
Traceback (most recent call last):
File "/usr/share/openerp-server/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/usr/share/openerp-server/service/web_services.py", line 599, in dispatch
res = fn(db, uid, *params)
File "/usr/share/openerp-server/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/share/openerp-server/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/share/openerp-server/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/share/openerp-server/osv/orm.py", line 671, in export_data
datas += self.__export_row(cr, uid, row, fields_to_export, context)
File "/usr/share/openerp-server/osv/orm.py", line 623, in __export_row
if isinstance(rr.name, browse_record):
File "/usr/share/openerp-server/osv/orm.py", line 287, in __getattr__
raise AttributeError(e)
AttributeError: "Field 'name' does not exist in object 'browse_record(stock.inventory.line, 1)'"
Follow ups
References