【问题标题】:Odoo POS popup widget Text input not workingOdoo POS 弹出窗口小部件文本输入不起作用
【发布时间】:2017-05-30 06:59:11
【问题描述】:

我创建了一种新的信用卡支付方式。选择此付款选项时,将出现一个弹出窗口以从用户那里获取卡详细信息。这里 我无法在输入字段中输入详细信息。 ( ctrl+v 正在工作)。

我测试了像 TextInputPopupWidgetTextIAreaPopupWidget 之类的 odoo 基本弹出窗口小部件都无法正常工作并且无法键入值。

有什么解决办法吗?

【问题讨论】:

    标签: javascript popup odoo-9 odoo-10 point-of-sale


    【解决方案1】:

    键盘在 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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-22
      • 2019-07-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多