Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
4001 Tampilan

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
Buang
Post Terkait Replies Tampilan Aktivitas
2
Feb 16
9212
7
Apr 23
29391
1
Sep 17
4581
1
Sep 20
5424
0
Agu 17
3593