Odoo Help


How can i use values from a print wizard in a qweb parser method?

on 4/27/15, 4:46 AM 638 views

My code for the print button on the wizard:

    def print_document(self):
        data = {
                'date_from': self.date_from,

        return self.env['report'].get_action(
             self.location_ids, self.report_id.report_name, data=data)

I got an empty pdf file, with data=data or data={}.

Get_action without data parameter prints my report.

Alternatively i tried to put the values in context with with_context, but my values are not available in the context of the qweb parser.


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 platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 4/27/15, 4:46 AM
Seen: 638 times
Last updated: 4/27/15, 4:46 AM