İçereği Atla
Menü
Bu soru işaretlendi
3345 Görünümler

 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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
3
Nis 25
1382
2
Eyl 24
2031
1
Ağu 24
2187
3
May 24
11529
1
Eki 23
2035