How can you display the page count outside the footer?
嘿,
我正在为客户 Build 一份报告 . 一切都很好,除了他想在页面上显示页码(在地址栏附近)而不是页脚,这根本不起作用 .
据我所知,到目前为止,报告模块中使用的subst.js负责用页码替换 page
和 topage
类 .
如果 subst is True
,则在report / minimal_layout模板中调用subst.js . get_pdf
方法的report.py中的页眉和页脚的 True
设置了布尔值,而 reportcontent
则为false . 如果我正在应用不良做法并编辑Odoo核心并为 reportcontent
设置 subst=True
,则报表引擎不再呈现报表的正文部分并返回undefined .
有没有人为这个问题找到合适的解决方案?
2 回答
试试这个