İçereği Atla
Menü
This question has been flagged
3633 Görünümler

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
Vazgeç
Related Posts Cevaplar Görünümler Aktivite
2
Şub 16
8813
7
Nis 23
28626
1
Eyl 17
4164
1
Eyl 20
5118
0
Ağu 17
3337