Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

3

QWeb Report page counter on page

By
Florian Fischer
on 9/29/15, 3:18 AM 905 views

Hey,

I'm building a report for a customer. All is fine except that he wants to display the page number on the page (near the adress field) instead of the footer, which is not working at all.

As I understand so far, the subst.js used in the report module is responsible for replacing the page and topage classes with the page numbers.

The subst.js is called in the report/minimal_layout template, if subst is True. The boolean value is set in the report.py in the get_pdf method for the header and footer to True, while it is false for the reportcontent. If I'm applying bad practice and edit the Odoo core and set subst=True for reportcontent, the report engine does not render the body part of the report anymore and returns undefined.

Has anyone had this problem and found a suitable solution?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 9/29/15, 3:18 AM
Seen: 905 times
Last updated: 2/12/16, 5:30 AM