[FIX]:orphan exception:(from XRG's commit)
lp bug: https://launchpad.net/bugs/720705 fixed bzr revid: nch@tinyerp.com-20110503122203-9rx2x7smdpqpm3j2
This commit is contained in:
parent
2030bc90f9
commit
8f3c2558ff
|
@ -35,6 +35,7 @@ import zipfile
|
|||
import common
|
||||
from openerp.osv.fields import float as float_class, function as function_class
|
||||
from openerp.osv.orm import browse_record
|
||||
from openerp.tools.translate import _
|
||||
|
||||
DT_FORMAT = '%Y-%m-%d'
|
||||
DHM_FORMAT = '%Y-%m-%d %H:%M:%S'
|
||||
|
@ -424,7 +425,7 @@ class report_sxw(report_rml, preprocess.report):
|
|||
elif report_type=='mako2html':
|
||||
fnct = self.create_source_mako2html
|
||||
else:
|
||||
raise 'Unknown Report Type'
|
||||
raise NotImplementedError('Unknown Report Type: %s' % report_type)
|
||||
fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
|
||||
if not fnct_ret:
|
||||
return (False,False)
|
||||
|
|
Loading…
Reference in New Issue