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
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
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.
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 4 25
|
1210 | ||
|
2
thg 3 25
|
1350 | ||
|
4
thg 11 24
|
7070 | ||
|
1
thg 3 24
|
1987 | ||
|
3
thg 9 23
|
24810 |