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:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
1
Répondre
556
Vues
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>
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
0
juin 24
|
16 | ||
|
1
avr. 25
|
287 | ||
|
2
mars 25
|
530 | ||
|
4
nov. 24
|
6114 | ||
|
2
sept. 24
|
2014 |