Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

How to make the enter key work as tab key in form view?

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
webclientjavascriptjquery
2 Antwoorden
9720 Weergaven
Avatar
Ahmed Tarek

I have followed this post 

https://www.odoo.com/forum/help-1/question/how-to-make-the-enter-key-work-as-tab-key-1310

and i managed to make enter key work in editable tree view but i can't figure out how to apply it in form view ????

0
Avatar
Annuleer
Avatar
Med Said BARA
Beste antwoord

Try to use this Web_returnkey

Web UI: "Return" Key

Changes "Enter" key behaviour in UI form: jump to next input field instead of doing nothing.

Credit: vadim@based.at

1
Avatar
Annuleer
Avatar
Ahmed Tarek
Auteur Beste antwoord

It didn't work 

@med said bara

0
Avatar
Annuleer
Med Said BARA

Hi;

It works as expected for me, the only downside is when you are in a text area field (multi-line field) you can't get a CRLF.

Can you give us more details ... ?

Ahmed Tarek
Auteur

this a screen cast showing when i installed the module and it didn't work in form view

https://drive.google.com/file/d/189oA-UgLkutae2lMbECEEDnBt4t6G1hZ/view?usp=sharing

Med Said BARA

As you can see inthe attached video, itworks (i'm using OpenERP v7.0):

https://1drv.ms/v/s!AoppyorvrgjwaUGK2ppcLQ-UbTY

May be there is a problem with Odoo 8+ versions + !!!

Ahmed Tarek
Auteur

Is there a way to convert this module to work for odoo 8 ??

Med Said BARA

According to Odoo documentation there is no change for the web client between v7.0 and v8.0, so this module must work out-of-the-box cause it's a pure web module (all in javascript, no python code, no orm ....).

But there is some thing you can do (just to see if it works): try adding a comma (,) at the end of line 12 of the __openerp__.py file (just after: 'js': ['static/view_form.js']).

Ahmed Tarek
Auteur

Now i know why it didn't work for v8 :D

that's because javascript files are loaded when you put them inside a qweb template like this

<?xml version="1.0" encoding="utf-8"?>

<openerp>

<data>

<template id="custom_assets_backend" name="custom_web_keyboard_navigation assets" inherit_id="web.assets_backend">

<xpath expr="." position="inside">

<script type="text/javascript" src="/custom_keypad_navigation/static/src/js/custom_keyboard_shortcuts.js"></script>

</xpath>

</template>

</data>

</openerp>

then include this file inside __openerp__.py like this

'data': [

'custom_keyboard_shortcuts.xml',

],

Ahmed Tarek
Auteur

now it works after i have included the javascript file inside a template like i mentioned in my previous comment !

Many Many Thanks @Med Said BARA :)

Med Said BARA

Good news and good luck.

This is a new version with little corrections ( ESLINT for view_form.js...and __openerp__.py web dependency ) if you want to test it:

https://www.dropbox.com/s/fwcmitehdnr25y8/web_returnkey.rar?dl=0

Ahmed Tarek
Auteur

Thanks again ! much appreciated ...

I just want to know how to understand javascript in odoo ? how can i start ?? as you know the documentation is not enough ......

Med Said BARA

There is really a lack of Odoo technical documentation especially when things are moving fast ( in very few years we jumped from V7.0 to V11) with no backward compatibility ...

First: You have to study JS (out of Odoo)

Second: Read the docs published by Odoo (Here https://www.odoo.com/documentation/11.0/index.html), here http://odoo-development.readthedocs.io/en/latest/index.html, and here https://odoo-master.readthedocs.io/en/latest/reference/javascript.html and also https://readthedocs.org/search/?q=odoo and don't forget GITHUB https://github.com/search?q=odoo

Last and not the least: Study the JS code published by Odoo and other developpers

and use the right tools for development and debugging.

Med Said BARA

Do not forget that javascript in odoo is always javascript; there is just some conventions and rules to respect when writing code:

use strict; is recommended for all javascript files

Use a linter (jshint, ...)

Never add minified Javascript libraries

Use UpperCamelCase for class declarations

https://github.com/OCA/maintainer-tools/blob/master/CONTRIBUTING.md#javascript

Med Said BARA

Before i forget: i think you can achieve your goal without loading js code that way

Ahmed Tarek
Auteur

I really appreciate your answer buy ..... I don't know why i can't upvote your answer ???!!!!

Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
Using jQuery to target and manipulate elements. Opgelost
javascript jquery
Avatar
Avatar
2
jul. 22
13399
how focus is to be made to delete button in one to many field in odoo10 while traversing using tab key
javascript jquery
Avatar
Avatar
1
aug. 19
5109
validation error trigger in odoo10
javascript jquery
Avatar
0
feb. 17
3634
Why won't my custom javascript module load? Opgelost
webclient javascript
Avatar
Avatar
1
mrt. 15
8008
ValueError: Unknown path: /web/static/lib/moment/locale/es-co.js Opgelost
webclient javascript odoo11.0
Avatar
Avatar
Avatar
Avatar
3
aug. 22
10601
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 is een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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