0
        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..
4

1 回答 1

0

在 v11 中,只有以下选项可用: 在此处输入图像描述

根据您的说法,没有任何选择。

于 2018-08-27T04:26:57.007 回答