Odoo Help


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

on 4/27/15, 4:46 AM 898 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.


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: 898 times
Last updated: 4/27/15, 4:46 AM