hi,
i am using this function to print a pos receipt in my costume module but it shows nothing, no errors or pdf files
@api.one
def print_report(self):
cr, uid, context = self.env.args
pos_ids = self.pool.get('pos.order').search(cr, uid,[('id', '=', self.pos_order.id)], context=context)
datas = {
'ids': pos_ids,
'model':'pos.order',
'from': self.pos_order.read()[0],
}
print pos_ids
print datas
# print data['form']
ret_val = self.env['report'].get_action(self.pos_order, 'point_of_sale.report_receipt', data=datas)
return ret_val