跳至內容
選單
此問題已被標幟
3408 瀏覽次數

 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)

 

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
4月 25
1473
2
9月 24
2163
1
8月 24
2309
3
5月 24
11763
1
10月 23
2160