← Back to team overview

openerp-india team mailing list archive

[Bug 894354] [NEW] [trunk] CSV export does not support group_by headers

 

Public bug reported:

server r.3826,  gtk client r.2008, addons r.5779

Basically the problem is that our export_data system does not support
exporting read_group headers. This makes is completely impossible to
export Analysis results (due to group_by_noleaf there are only group_by
headers in the results), and will also not be the expected results for
normal group_by cases.

Tested with GTK only, couldn't test with 6.1 web client yet because
another bugs blocks the CSV export there.

1. New DB, install Sales, enable extended view
2. Sales>Reporting>Sales Analysis, keep default search options
3. Select all lines (create some sale orders first if the list is empty)
4. Go to Form>Export data... 
5. Un-check "import compatible" to see all fields, then choose a few fields, e.g Salesman, # of lines
6. Export > 0 records exported

Server-side debugging shows that the export_data call returns empty
results, as expected, because it did not receive any IDs to export:
[2011-11-24 11:18:00,369][?] DEBUG_RPC_ANSWER:result:{'datas': []}

We should probably improve the export_data API to support these cases,
even though it is always possible to use the Print Screen report or
Copy/Paste to export the visible data into a spreadsheet.

To be discussed with R&D.

** Affects: openobject-server
     Importance: Low
     Assignee: OpenERP's Framework R&D (openerp-dev-framework)
         Status: Confirmed

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/894354

Title:
  [trunk] CSV export does not support group_by headers

Status in OpenERP Server:
  Confirmed

Bug description:
  server r.3826,  gtk client r.2008, addons r.5779

  Basically the problem is that our export_data system does not support
  exporting read_group headers. This makes is completely impossible to
  export Analysis results (due to group_by_noleaf there are only
  group_by headers in the results), and will also not be the expected
  results for normal group_by cases.

  Tested with GTK only, couldn't test with 6.1 web client yet because
  another bugs blocks the CSV export there.

  1. New DB, install Sales, enable extended view
  2. Sales>Reporting>Sales Analysis, keep default search options
  3. Select all lines (create some sale orders first if the list is empty)
  4. Go to Form>Export data... 
  5. Un-check "import compatible" to see all fields, then choose a few fields, e.g Salesman, # of lines
  6. Export > 0 records exported

  Server-side debugging shows that the export_data call returns empty
  results, as expected, because it did not receive any IDs to export:
  [2011-11-24 11:18:00,369][?] DEBUG_RPC_ANSWER:result:{'datas': []}

  We should probably improve the export_data API to support these cases,
  even though it is always possible to use the Print Screen report or
  Copy/Paste to export the visible data into a spreadsheet.

  To be discussed with R&D.

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


Follow ups

References