Merge lp:~invitu/openobject-addons/7.0-fix-1190313 into lp:openobject-addons/7.0

Proposed by invitu
Status: Needs review
Proposed branch: lp:~invitu/openobject-addons/7.0-fix-1190313
Merge into: lp:openobject-addons/7.0
Diff against target: 12 lines (+1/-1)
1 file modified
edi/models/edi.py (+1/-1)
To merge this branch: bzr merge lp:~invitu/openobject-addons/7.0-fix-1190313
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+170881@code.launchpad.net

Description of the change

[IMP] allow webkit reports in edi (bug 1190313)

To post a comment you must log in.

Unmerged revisions

9261. By invitu

[IMP] allow webkit reports in edi (bug 1190313)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'edi/models/edi.py'
2--- edi/models/edi.py 2013-06-07 11:38:29 +0000
3+++ edi/models/edi.py 2013-06-21 17:21:30 +0000
4@@ -414,7 +414,7 @@
5 at the beginning of ``edi_export``, before the call to ``super()``."""
6 ir_actions_report = self.pool.get('ir.actions.report.xml')
7 matching_reports = ir_actions_report.search(cr, uid, [('model','=',self._name),
8- ('report_type','=','pdf'),
9+ ('report_type','in',('pdf','webkit')),
10 ('usage','=','default')])
11 if matching_reports:
12 report = ir_actions_report.browse(cr, uid, matching_reports[0])