Review: Needs Fixing

This breaks the test hr_attendance_error.  The generation of report 
"hr.attendance.error" invokes the method report_sxw.create_source_pdf with 
ids=[] (the ids are provided through the field "datas".)  In that case, the 
method returns None.

The problem is in the method _rml_template.render 
(openerp/report/render/trml2pdf.py).  The element pageCount is rendered only 
once for all tags <story>, while each story should have its own value for 
pageCount.  Moreover, pageCount is rendered after a PageReset, which explains 
why the value is 0...

Raphael

-- 
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-bug-516966-ysa/+merge/62127
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-server/trunk-bug-516966-ysa.

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to