CSV export fails with traceback
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP R&D Web Team |
Bug Description
openerp-web r.1547, server r.3826, addons .5779
1. New db, install sales, enable extended view
2. Sales>Reporting
3. Open side-bar, choose Export
4. Switch to "Export all data"
5. Select a few fields, e.g. Salesman, # of lines
6. Export -> server-side traceback:
[2011-11-24 11:06:57,161][?] INFO:werkzeug:
[2011-11-24 11:06:57,167][?] INFO:werkzeug:
[2011-11-24 11:06:57,185][?] INFO:werkzeug:
[2011-11-24 11:07:00,494][?] INFO:werkzeug:
[2011-11-24 11:07:10,745][?] INFO:werkzeug:
[2011-11-24 11:07:10,753][?] ERROR:werkzeug:
Traceback (most recent call last):
File "/usr/local/
execute(app)
File "/usr/local/
application
File "/home/
result = handler(environ, start_response)
File "/home/
return self.dispatch(
File "/usr/local/
return self.app(environ, start_response)
File "/home/
result = handler( request, self.config)
File "/home/
return HttpRequest(
File "/home/
r = method(controller, self, **self.params)
File "/home/
ids = ids or Model.search(
TypeError: proxy() got an unexpected keyword argument 'context'
I could have just fixed it but I'm not too sure of other side-effects, so I'll let you double-check.
Related branches
Changed in openerp-web: | |
status: | Confirmed → In Progress |
Looks like **kwargs on model proxies was lost in the switch to the "client library" (or maybe even in the port from 6.0 to 6.1, I'm not sure it ever worked in the new client as the original model proxy API was fairly basic to start with), and I guess nobody noticed because most exports are done on regular lists (thus ids-based, not domain-based).
Moving to an *args-based long form of search