how i can put a div in the bottom of the last page of a qweb pdf report?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
Hi Jesús Ventosinos,
This is doable in QWEB report too!
You have to extend (Override) subset function which is defined in 'report' module.
You have to add piece of code inside the subset function : static/src/js/subst.js
var operations = {
'bottom-page': function (elt) { elt.style.visibility = (vars.page === vars.topage) ? "visible" : "hidden"; },
};
for (var klass in operations) {
var y = document.getElementsByClassName(klass);
for (var j=0; j<y.length; ++j) operations[klass](y[j]);
}
<div class="bottom-page">
This content will dislpay only in last page.. now you can add this div where you want.. header ,body or footer it will display on last page only.
<div>
Hope this will helps.
Regards,
Anil.
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
1
kwi 25
|
1209 | ||
|
2
mar 25
|
1349 | ||
Translate month name in t-esc Qweb report
Rozwiązane
|
|
4
lis 24
|
7070 | |
|
1
mar 24
|
1985 | ||
|
3
wrz 23
|
24802 |