[FIX] rml: avoid reports ending by zero (opw 608073)
authorMartin Trigaux <mat@openerp.com>
Tue, 1 Jul 2014 09:29:22 +0000 (11:29 +0200)
committerMartin Trigaux <mat@openerp.com>
Tue, 1 Jul 2014 09:29:22 +0000 (11:29 +0200)
commitf825b6043bd138049ee2a107e44596ceba8ef954
tree3a81dd2fe8f43498ce2cfcdcd90dddfc275728bf
parent020f23a9d308abc09ad57c573ff159f385264402
[FIX] rml: avoid reports ending by zero (opw 608073)

Commit b6a7402 (reverted at f8671cb) was almost correct, the PageReset should be added at the end of each stories but only if we have one more stories.
The PageReset will force the page count to be reseted at zero which means that last page of report would have been at zero.
openerp/report/render/rml2pdf/trml2pdf.py