代码之家  ›  专栏  ›  技术社区  ›  Maddela Tejaswini4029

当odoo11中pos中的“重新打印收据”按钮为真时,“账单”按钮不工作

  •  0
  • Maddela Tejaswini4029  · 技术社区  · 6 年前
            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中的代码, 单击bill按钮后,此函数正在调用。

            ---->>> in printbill.js
    

    单击bill按钮后,此函数正在调用。

            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..
    
    1 回复  |  直到 6 年前
        1
  •  0
  •   Keval Mehta    6 年前

    在v11中,只有以下选项可用: enter image description here

    根据你所说的,没有任何选择。

    推荐文章