~openerp-dev/openobject-server/saas-4-report-fixes-sle

« back to all changes in this revision

Viewing changes to openerp/tools/test_reports.py

  • Committer: Simon Lejeune
  • Date: 2014-05-15 20:23:23 UTC
  • Revision ID: sle@openerp.com-20140515202323-un166mor6udytjgx
[FIX] ir_actions: adapt render_report when called in a tests/qweb report context to generate the pdf only if a directory has been provided

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
                if ('[[' in line) or ('[ [' in line):
88
88
                    _logger.error("Report %s may have bad expression near: \"%s\".", rname, line[80:])
89
89
            # TODO more checks, what else can be a sign of a faulty report?
90
 
    elif res_format == 'foobar':
91
 
        # TODO
 
90
    elif res_format == 'html':
92
91
        pass
93
92
    else:
94
93
        _logger.warning("Report %s produced a \"%s\" chunk, cannot examine it", rname, res_format)