2013-09-16 09:47:54,800 18911 ERROR trnk openerp.service.report: Exception: "'bool' object is not iterable" while evaluating
"repeatIn(gettaxamount(data['form']), 'p')"
Traceback (most recent call last):
File "/home/tch/workspace/rdtools/server/trunk/openerp/service/report.py", line 92, in go
result, format = openerp.report.render_report(cr, uid, ids, object, datas, context)
File "/home/tch/workspace/rdtools/server/trunk/openerp/report/__init__.py", line 40, in render_report
return registry['ir.actions.report.xml'].render_report(cr, uid, ids, name, data, context)
File "/home/tch/workspace/rdtools/server/trunk/openerp/addons/base/ir/ir_actions.py", line 129, in render_report
return new_report.create(cr, uid, res_ids, data, context)
File "/home/tch/workspace/rdtools/server/trunk/openerp/report/report_sxw.py", line 456, in create
fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
File "/home/tch/workspace/rdtools/server/trunk/openerp/report/report_sxw.py", line 525, in create_source_pdf
return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
File "/home/tch/workspace/rdtools/server/trunk/openerp/report/report_sxw.py", line 547, in create_single_pdf
pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
File "/home/tch/workspace/rdtools/server/trunk/openerp/report/interface.py", line 217, in create_pdf
obj.render()
File "/home/tch/workspace/rdtools/server/trunk/openerp/report/render/render.py", line 59, in render
self._result = self._render()
File "/home/tch/workspace/rdtools/server/trunk/openerp/report/render/rml.py", line 41, in _render
return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)
File "/home/tch/workspace/rdtools/server/trunk/openerp/report/render/rml2pdf/trml2pdf.py", line 1035, in parseNode
r.render(fp)
File "/home/tch/workspace/rdtools/server/trunk/openerp/report/render/rml2pdf/trml2pdf.py", line 348, in render
pt_obj.render(el)
File "/home/tch/workspace/rdtools/server/trunk/openerp/report/render/rml2pdf/trml2pdf.py", line 1011, in render
fis += r.render(node_story)
File "/home/tch/workspace/rdtools/server/trunk/openerp/report/render/rml2pdf/trml2pdf.py", line 905, in render
return process_story(node_story)
File "/home/tch/workspace/rdtools/server/trunk/openerp/report/render/rml2pdf/trml2pdf.py", line 894, in process_story
for node in utils._child_get(node_story, self):
File "/home/tch/workspace/rdtools/server/trunk/openerp/report/render/rml2pdf/utils.py", line 48, in _child_get
for ctx in eval(n.get('rml_loop'),{}, self.localcontext):
File "/home/tch/workspace/rdtools/server/trunk/openerp/tools/safe_eval.py", line 246, in safe_eval
return eval(c, globals_dict, locals_dict)
File "", line 1, in <module>
File "/home/tch/workspace/rdtools/server/trunk/openerp/report/report_sxw.py", line 331, in repeatIn
for id in lst:
ValueError: "'bool' object is not iterable" while evaluating
"repeatIn(gettaxamount(data['form']), 'p')"
2013-09-16 09:47:55,147 18911 ERROR trnk openerp.addons.web.http: An exception occured during an http request
Traceback (most recent call last):
File "/home/tch/workspace/rdtools/web/trunk/addons/web/http.py", line 414, in dispatch
r = self._call_function(**self.params)
File "/home/tch/workspace/rdtools/web/trunk/addons/web/http.py", line 174, in _call_function
return self.func(*args, **kwargs)
File "/home/tch/workspace/rdtools/web/trunk/addons/web/http.py", line 1053, in nfunc
return func(*args, **kwargs)
File "/home/tch/workspace/rdtools/web/trunk/addons/web/controllers/main.py", line 1705, in index
request.session.db, request.session.uid, request.session.password, report_id)
File "/home/tch/workspace/rdtools/web/trunk/addons/web/http.py", line 553, in proxy_method
result = openerp.netsvc.dispatch_rpc(self.service_name, method, args)
File "/home/tch/workspace/rdtools/server/trunk/openerp/netsvc.py", line 236, in dispatch_rpc
result = dispatch(method, params)
File "/home/tch/workspace/rdtools/server/trunk/openerp/service/report.py", line 34, in dispatch
res = fn(db, uid, *params)
File "/home/tch/workspace/rdtools/server/trunk/openerp/service/report.py", line 140, in exp_report_get
return _check_report(report_id)
File "/home/tch/workspace/rdtools/server/trunk/openerp/service/report.py", line 118, in _check_report
raise openerp.osv.orm.except_orm(exc.message, exc.traceback)
except_orm: (u'"\'bool\' object is not iterable" while evaluating\n"repeatIn(gettaxamount(data[\'form\']), \'p\')"', (<type 'exceptions.ValueError'>, ValueError(u'"\'bool\' object is not iterable" while evaluating\n"repeatIn(gettaxamount(data[\'form\']), \'p\')"',), <traceback object at 0xb2e200f4>))
Hello,
I am facing this below traceback :
2013-09-16 09:47:54,800 18911 ERROR trnk openerp. service. report: Exception: "'bool' object is not iterable" while evaluating gettaxamount( data['form' ]), 'p')" tch/workspace/ rdtools/ server/ trunk/openerp/ service/ report. py", line 92, in go report. render_ report( cr, uid, ids, object, datas, context) tch/workspace/ rdtools/ server/ trunk/openerp/ report/ __init_ _.py", line 40, in render_report 'ir.actions. report. xml'].render_ report( cr, uid, ids, name, data, context) tch/workspace/ rdtools/ server/ trunk/openerp/ addons/ base/ir/ ir_actions. py", line 129, in render_report create( cr, uid, res_ids, data, context) tch/workspace/ rdtools/ server/ trunk/openerp/ report/ report_ sxw.py" , line 456, in create tch/workspace/ rdtools/ server/ trunk/openerp/ report/ report_ sxw.py" , line 525, in create_source_pdf single_ pdf(cr, uid, ids, data, report_xml, context) tch/workspace/ rdtools/ server/ trunk/openerp/ report/ report_ sxw.py" , line 547, in create_single_pdf doc(etree. tostring( processed_ rml),rml_ parser. localcontext, logo,title. encode( 'utf8') ) tch/workspace/ rdtools/ server/ trunk/openerp/ report/ interface. py", line 217, in create_pdf tch/workspace/ rdtools/ server/ trunk/openerp/ report/ render/ render. py", line 59, in render tch/workspace/ rdtools/ server/ trunk/openerp/ report/ render/ rml.py" , line 41, in _render parseNode( self.rml, self.localcontext, images= self.bin_ datas, path=self. path,title= self.title) tch/workspace/ rdtools/ server/ trunk/openerp/ report/ render/ rml2pdf/ trml2pdf. py", line 1035, in parseNode tch/workspace/ rdtools/ server/ trunk/openerp/ report/ render/ rml2pdf/ trml2pdf. py", line 348, in render obj.render( el) tch/workspace/ rdtools/ server/ trunk/openerp/ report/ render/ rml2pdf/ trml2pdf. py", line 1011, in render node_story) tch/workspace/ rdtools/ server/ trunk/openerp/ report/ render/ rml2pdf/ trml2pdf. py", line 905, in render story(node_ story) tch/workspace/ rdtools/ server/ trunk/openerp/ report/ render/ rml2pdf/ trml2pdf. py", line 894, in process_story child_get( node_story, self): tch/workspace/ rdtools/ server/ trunk/openerp/ report/ render/ rml2pdf/ utils.py" , line 48, in _child_get get('rml_ loop'), {}, self.localcontext): tch/workspace/ rdtools/ server/ trunk/openerp/ tools/safe_ eval.py" , line 246, in safe_eval tch/workspace/ rdtools/ server/ trunk/openerp/ report/ report_ sxw.py" , line 331, in repeatIn gettaxamount( data['form' ]), 'p')" addons. web.http: An exception occured during an http request tch/workspace/ rdtools/ web/trunk/ addons/ web/http. py", line 414, in dispatch function( **self. params) tch/workspace/ rdtools/ web/trunk/ addons/ web/http. py", line 174, in _call_function tch/workspace/ rdtools/ web/trunk/ addons/ web/http. py", line 1053, in nfunc tch/workspace/ rdtools/ web/trunk/ addons/ web/controllers /main.py" , line 1705, in index session. db, request. session. uid, request. session. password, report_id) tch/workspace/ rdtools/ web/trunk/ addons/ web/http. py", line 553, in proxy_method netsvc. dispatch_ rpc(self. service_ name, method, args) tch/workspace/ rdtools/ server/ trunk/openerp/ netsvc. py", line 236, in dispatch_rpc tch/workspace/ rdtools/ server/ trunk/openerp/ service/ report. py", line 34, in dispatch tch/workspace/ rdtools/ server/ trunk/openerp/ service/ report. py", line 140, in exp_report_get report( report_ id) tch/workspace/ rdtools/ server/ trunk/openerp/ service/ report. py", line 118, in _check_report osv.orm. except_ orm(exc. message, exc.traceback) n"repeatIn( gettaxamount( data[\' form\'] ), \'p\')"', (<type 'exceptions. ValueError' >, ValueError( u'"\'bool\ ' object is not iterable" while evaluating\ n"repeatIn( gettaxamount( data[\' form\'] ), \'p\')"',), <traceback object at 0xb2e200f4>))
"repeatIn(
Traceback (most recent call last):
File "/home/
result, format = openerp.
File "/home/
return registry[
File "/home/
return new_report.
File "/home/
fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
File "/home/
return self.create_
File "/home/
pdf = create_
File "/home/
obj.render()
File "/home/
self._result = self._render()
File "/home/
return rml2pdf.
File "/home/
r.render(fp)
File "/home/
pt_
File "/home/
fis += r.render(
File "/home/
return process_
File "/home/
for node in utils._
File "/home/
for ctx in eval(n.
File "/home/
return eval(c, globals_dict, locals_dict)
File "", line 1, in <module>
File "/home/
for id in lst:
ValueError: "'bool' object is not iterable" while evaluating
"repeatIn(
2013-09-16 09:47:55,147 18911 ERROR trnk openerp.
Traceback (most recent call last):
File "/home/
r = self._call_
File "/home/
return self.func(*args, **kwargs)
File "/home/
return func(*args, **kwargs)
File "/home/
request.
File "/home/
result = openerp.
File "/home/
result = dispatch(method, params)
File "/home/
res = fn(db, uid, *params)
File "/home/
return _check_
File "/home/
raise openerp.
except_orm: (u'"\'bool\' object is not iterable" while evaluating\