Hi ,
I need to print my custom report in odoo pos interface. In the ReceiptScreenWidget I have added a button to print my custom report. So while clicking on that button I need to print or download that report. How can I do that?
This is my qweb template I used to add the print button in ReceiptScreenWidget
<t t-extend="ReceiptScreenWidget">
<t t-jquery=".button.print_invoice" t-operation="after">
<div class="button print_report_custom">
<i class='fa fa-print'></i> Print report </div> </t> </t>
I need to print the report in the following click function.
screens.ReceiptScreenWidget.include({
renderElement: function() {
var self = this;
this._super();
var button_print_custom = this.$('.button.print_report_custom');
button_print_custom.click(function () {
var order = self.pos.get_order();
if (!self._locked)
{
}
});
},
});
Thanks in Advance
Even I am looking something like this