2017-05-30 90 views
1

我創建了一種新的付款方式。當選擇這個支付選項時,會出現一個彈出窗口來獲取用戶的卡細節。這裏我無法在輸入欄中輸入詳細信息。 (ctrl + v正在工作)。Odoo POS彈出窗口小部件文本輸入無法正常工作

我測試odoo基彈出窗口小部件等TextInputPopupWidgetTextIAreaPopupWidget兩者不工作,並在值不能鍵。

任何解決方案。?

回答

0

鍵盤在POS付款時被阻止。所以你需要覆蓋

this.keyboard_handler = function(event){ 
var key = ''; 
      if (event.type === "keypress") { 
       if($(".your popup div class").not('.oe_hidden').length){ 
        return; 
       } 

       rest of code...... 
}; 

and 

this.keyboard_keydown_handler = function(event){ 
      if($(".your popup div class").not('.oe_hidden').length){ 
       return; 
      } 
    rest of code...... 
}; 

Thanks