Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3775 Vizualizări

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


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
feb. 16
8982
7
apr. 23
29029
1
sept. 17
4359
1
sept. 20
5247
0
aug. 17
3461