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
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
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.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
4
Nov 24
|
5232 | ||
|
1
Mar 24
|
392 | ||
|
3
Sep 23
|
22641 | ||
|
0
Feb 24
|
1714 | ||
|
1
Oct 22
|
2774 |