I want to add something to the footer of the report, but it only appears on the last page of the report generation results. I have tried using the OCA module: https://apps.odoo.com/apps/modules/17.0/report_qweb_element_page_visibility, and add CSS to the element. However, it had no effect at all, my element still appeared on every page. Do you have any references on how to use the details of the module or is there another way? Note: my report uses a custom template from external layout
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
1
回复
546
查看
You should set 'last-page' as a class, not CSS style, as the module description says:
<t t-if="o._table=='account_invoice'"> <div class="not-first-page"> <span t-esc="o.number"/> </div> </t> <t t-if="o._table=='sale_order'"> <div class="not-last-page"> <span t-esc="o.name"/> </div> </t>
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
0
6月 24
|
16 | ||
|
1
4月 25
|
246 | ||
|
2
3月 25
|
488 | ||
|
4
11月 24
|
6090 | ||
|
2
9月 24
|
2001 |