Odoo POS 弹出窗口小部件文本输入不起作用
Odoo POS popup widget Text input not working
我创建了一种新的卡支付方式。选择此支付选项时,将出现一个弹出窗口以从用户那里获取卡的详细信息。这里 我无法在输入字段中键入详细信息。 ( ctrl+v 有效)。
我测试了 odoo 基本弹出窗口小部件,如 TextInputPopupWidget 和 TextIAreaPopupWidget 都不起作用,无法键入值。
有什么解决办法吗?
键盘在 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
我创建了一种新的卡支付方式。选择此支付选项时,将出现一个弹出窗口以从用户那里获取卡的详细信息。这里 我无法在输入字段中键入详细信息。 ( ctrl+v 有效)。
我测试了 odoo 基本弹出窗口小部件,如 TextInputPopupWidget 和 TextIAreaPopupWidget 都不起作用,无法键入值。
有什么解决办法吗?
键盘在 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