Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textil
    • Kov
    • Nábytek
    • Jídlo
    • Pivovar
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • Podpora IT & hardware
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Procházet všechna odvětví
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Služby pro partnery
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

How to allow external keyboard entry in Point of Sales popupwidget?

Odebírat

Get notified when there's activity on this post

This question has been flagged
javascriptposkeyboardpoint_of_salev9
5799 Zobrazení
Avatar
Pieter Paulussen

I'm having some problems with allowing the user to enter text with an EXTERNAL keyboard in a point of sale 'textinput' popupwidget. Everything works in the background (orders get registered etc.) but it looks to me like the keys are not registering to the correct view. 

The general idea is this: I want to ask the user of the point of the sale for the customer zip code. The process starts when the 'pay' button is clicked in the ActionpadWidget. The view passes to the Paymentscreenwidget. He then enters the zip code using the 'number' popup widget. (BTW: it's not possible here either to work with the numpad part of the external keyboard)

 When the zip code is not yet present in the database the user should be asked for the city name. That needs to be entered into the 'textinput' widget. However typing text is entered to the textfield. It is possible however copy paste text to the field and from there on everything works fine. 

The javascript code I have a the moment:

QUESTION: How do I get the external keyboard entry to the correct field?

screens.ActionpadWidget.include({
/**
* When the button 'pay' is clicked and the postcode of the customer should be tracked -> show popup.
* When a customer is selected, no popup will be shown and the customer data will be used to register zipcode.
* Unless the zip code in the customer field is unknown. Then a popup will be shown
*/
renderElement: function(){
var self = this;
this._super();
var track_postal_codes = self.pos.config.postal_code_tracking;
this.$('.pay').click(function(){
var postal_codes = self.pos.postal_codes_by_id;
if (track_postal_codes == true) {
console.log(self.pos.get_order().attributes.client);
if (self.pos.get_order().attributes.client){
var client = self.pos.get_order().attributes.client;
if (client.zip == "" || client.city == "") {
self.pos.gui.show_popup('number', {
title: _t('Enter Customer Postal Code'),
value: _t('0'),
confirm: function (new_postal_code) {
if (postal_codes.hasOwnProperty(new_postal_code.toString())) {
self.pos.get_order().set_postal_code(new_postal_code);
} else {
this.pos.gui.show_popup('textinput', {
title: _t('Enter City Name'),
value: _t("New City Name"),
confirm: function (new_city_name) {
self.pos.get_order().set_postal_code(new_postal_code);
self.pos.get_order().set_city_name(new_city_name);
self.pos.postal_codes_by_id[new_postal_code] = new_city_name;
}
});
}
}
});
} else {
if (postal_codes.hasOwnProperty(client.zip.toString())) {
self.pos.get_order().set_postal_code(client.zip);
self.pos.get_order().set_city_name(client.city);
} else {
self.pos.get_order().set_postal_code(client.zip);
self.pos.get_order().set_city_name(client.city);
self.pos.postal_codes_by_id[client.zip] = client.city;
}
}
} else {
self.pos.gui.show_popup('number', {
title: _t('Enter Customer Postal Code'),
value: _t('0'),
confirm: function (new_postal_code) {
if (postal_codes.hasOwnProperty(new_postal_code.toString())) {
self.pos.get_order().set_postal_code(new_postal_code);
} else {
this.pos.gui.show_popup('textinput', {
title: _t('Enter City Name'),
value: _t("New City Name"),
confirm: function (new_city_name) {
console.log(new_city_name);
self.pos.get_order().set_postal_code(new_postal_code);
self.pos.get_order().set_city_name(new_city_name);
self.pos.postal_codes_by_id[new_postal_code] = new_city_name;
}
});
}
}
});
}
}
});
}
});


2
Avatar
Zrušit
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
Step by step guidelines to accept credit card payments in Odoo POS Vyřešeno
creditcard pos point_of_sale v9
Avatar
1
dub 23
27036
Point of sale override TicketScreen method
javascript pos override point_of_sale
Avatar
0
lis 22
3653
How to set drop-down list for customers in point of sale interface Vyřešeno
javascript pos customer point_of_sale
Avatar
Avatar
1
říj 22
6633
Uncaught (in promise) TypeError: this._rpc(...).then(...).fail is not a function Vyřešeno
javascript pos point_of_sale odoo13.0
Avatar
Avatar
Avatar
2
čvc 22
21260
Point of sale image src call javaScript variable
javascript pos point_of_sale odoo11
Avatar
0
bře 19
4096
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now