[trunk/7.0] POS sale details report exception when sale order lines contains no taxes
Bug #1225860 reported by
Andrius Preimantas @ hbee
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Committed
|
Medium
|
OpenERP R&D Addons Team 3 |
Bug Description
Addons revno: 9443
This bus is introduced with this commit:
http://
The return value of _get_tax_amount() function is used with repeatIn report tag which apparently is not aware how to cope with False value (one is returned when no taxes are generated).
Please find patch attached
Related branches
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
To post a comment you must log in.
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')"
"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.a...