~unifield-team/unifield-web/uf-2264

« back to all changes in this revision

Viewing changes to addons/openerp/controllers/impex.py

  • Committer: Sebastien Alix
  • Date: 2014-01-09 08:50:16 UTC
  • Revision ID: sebastien.alix@osiell.com-20140109085016-iqui7tiib1safchz
UF-2264 [FIX] Export issue - limit the number of first level exported lines (top line information) to 2000.

Show diffs side-by-side

added added

removed removed

Lines of Context:
451
451
            flds = fields_to_read[:]
452
452
            params.fields2 = fields_to_read[:]
453
453
 
454
 
            data = rpc_obj.read_group(domain, flds, group_by, 0, 0, ctx)
 
454
            data = rpc_obj.read_group(domain, flds, group_by, 0, 2000, ctx)
455
455
 
456
456
            result_tmp = []  # List of processed data lines (dictionaries)
457
457
            # Closure to recursively prepare and insert lines in 'result_tmp'