%for main_o in objects: <% print main_o.sale_announcement_ids %> %for o in announcement_pool.browse(cr, uid, map(int, main_o.sale_announcement_ids.split(','))): % if main_i > 0: <p style="page-break-after: always"/> <div class="page_break_margin"></div> % endif <% main_i = 1 %>
换页定义
<p style="page-break-after: always"/> <div class="page_break_margin"></div>
############安装
1:安装 report_webkit模块
2:安装 wkhtmltopdf 工具
3:windows下如果提示找不 wkhtmltopdf 命令, 可以在 ‘设置/参数/系统参数’ 新建 key=webkit_path value='your_installed_pathwkhtmltopdf.exe' 配置。
4:报表sample 模块 branch: bzr+ssh://bazaar.launchpad.net/+branch/sale-reports/