odoo/openerp/report
Martin Trigaux 354b82bee0 [FIX] report: page numbering rml reports
Save the NumberedCanvas state before doing a page reset.
The order of execution when rendering an rml report is the following:
1. init canevas (_pageNumber = 1)
2. render the page element
3. if still pages to render, afterPage method
4. if still pages to render, showPage method (_pageNumber += 1)
5. back to step 2 for each page
6. draw the ResetPage element (setting flag _doPageReset=True)
7. end the document build with afterPage & showPage method

The PageReset element should be executed at the end of the rendering of a story (subdocument) to reinitialize the page numbers to 0 (for new story) and insert the pageCount element for that story with the total number of pages (needed if want to use tag <pageCount/> in rml).

In case of NumberedCanvas (e.g. used in Trial Balance report), the numbering is generated at the end of the build using the _saved_page_states dict in the canevas.
To have an accurate _saved_page_states content, it needs to be saved before the pageReset.

Fixes #2225
2014-10-21 15:36:01 +02:00
..
printscreen [REM] trailing semicolons 2012-12-14 13:43:10 +01:00
pyPdf [IMP] more augmented assignments 2012-12-14 14:44:55 +01:00
render [FIX] report: page numbering rml reports 2014-10-21 15:36:01 +02:00
__init__.py [FIX] the embedded pychart library is not used. 2012-02-08 16:08:15 +01:00
common.py [IMP] openerp python module. 2011-02-07 13:57:23 +01:00
custom.py [REM] unnecessary parens 2012-12-14 13:38:03 +01:00
int_to_text.py [REM] unnecessary parens 2012-12-14 13:38:03 +01:00
interface.py [FIX] misplaced docstrings 2012-12-14 13:42:43 +01:00
misc.py [IMP] openerp python module. 2011-02-07 13:57:23 +01:00
preprocess.py [REF] openerp.report: use the recommended syntax to raise error and never use empty except:. 2012-02-08 18:02:17 +01:00
print_fnc.py [IMP] openerp python module. 2011-02-07 13:57:23 +01:00
print_xml.py [REF] openerp.report: fix weird indentation, not multiple of four. 2012-02-08 18:04:56 +01:00
report_sxw.py [IMP] report_sxw: missing parameter without_company for display_address 2014-08-27 16:55:02 +02:00