Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet

 the below functino calls the pos reciepet report, it does the call but the report is missing some fuctions in its parser file. is there a way to include the default parser with my script

 

@api.one    
def print_report(self): report_obj = self.env['report'] report = report_obj._get_report_from_name('point_of_sale.report_receipt') docargs = { 'doc_ids': self.pos_order.id, 'doc_model': report.model, 'docs': self.pos_order, } return report_obj.render('point_of_sale.report_receipt', docargs)

 

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
3
Apr. 25
1711
2
Sept. 24
2688
1
Aug. 24
2734
3
Mai 24
12508
1
Okt. 23
2556