Skip to Content
मेन्यू
This question has been flagged
4064 Views

My code for the print button on the wizard:

   @api.multi
    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.

Thanks


Avatar
Discard
Related Posts Replies Views Activity
2
फ़र॰ 16
9311
7
अप्रैल 23
29502
1
सित॰ 17
4702
1
सित॰ 20
5502
0
अग॰ 17
3666