I am using odoo11. In pos module when I open the session, I can click `reprint receipt`, `bill`, `split` etc. buttons.
When I click the `bill` button it is not showing the preview window if `reprint receipt` (backed name `iface_print_via_proxy` is true) is true.
If I make this `iface_print_via_proxy` boolean field false it will show the bill preview.
I checked in runbot also... The same thing happened in the runbot.
Please, anyone help me rectify this issue...
在pos_restaurant / static / src / js / printbill.js中的代码下方, 单击“帐单”按钮后,此函数将被调用。
---->>> in printbill.js
在pos_restaurant / static / src / js / printbill.js中的代码下方, 单击“帐单”按钮后,此函数将被调用。
button_click: function(){
console.log('iface....',this.pos.config.iface_print_via_proxy)
if (!this.pos.config.iface_print_via_proxy) {
this.gui.show_screen('bill');
} else {
this.print_xml();
}
},
Normally this code is using
if iface_print_via_proxy i true. then bill button calls the this.print_xml() method.
put in this method
this.pos.proxy.print_receipt(QWeb.render('BillReceipt',{
receipt: receipt, widget: this, pos: this.pos, order: order
}));
pos.proxy.print_receipt is using this is not working.
when i change to this.pos.proxy.print_receipt(QWeb.render....
to $(".").html(Qweb.render...
then bill will be printed in html page..
in runbot also same thing happens
please check this link
http://364855-11-0-65ef27.runbot13.odoo.com/pos/web/?debug=1#action=pos.ui
in this link both Bill and reprint button visible. u will only see the reprint page. not the bill page. if u want see the bill page reprint button will false then it works...
please i thing u understand my problem.. please help..
in v10 reprint is not working.. in v11 bill is not working at a time process..