Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

How to delimitate input only number and letter?

By
Miftah
on 2/9/15, 1:58 AM 502 views

I need to delimitate User's input just number and letter? How to do it?

1

Ludo - Neobis

--Ludo - Neobis--
2387
| 2 2 5
Hoogvliet, Netherlands
--Ludo - Neobis--

Developer

Ludo - Neobis
On 2/9/15, 3:34 AM

If you want to check while typing, I think you are stuck with using Javascript on the field that you need to check. Since Odoo is webbased and web forms are static, input will not be checked whilst typing.

If you want to check afterwards, then simply add the on_change method for the field (the way to do this varies between Odoo v.7 and v.8), where you would check with a method if the input contains any illegal characters.

Hope this helps you out.

Ok.. Thank you Ludo.

Miftah
on 2/10/15, 12:33 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 2/9/15, 1:58 AM
Seen: 502 times
Last updated: 7/10/15, 10:50 AM