Odoo-mobile / framework

Odoo Mobile Framework
https://play.google.com/store/apps/dev?id=8607973775002477408
Other
327 stars 374 forks source link

[IMP] Use numeric keyboards for OInteger and OFloat types in a OField #327

Open pathob opened 7 years ago

pathob commented 7 years ago

Recent state: The OInteger and OFloat types in a OField have been mapped to a OEditTextField that always used a normal text keyboard. Thus, it was possible to enter non-numeric characters that cannot be stored in the database, so that is was necessary to do input checks etc.

Now, new FieldTypes 'Integer' and 'Float' are introduced. In a OField, the keyboard for a OInteger type is restricted to only digits, and the keyboard for a OFloat type is restricted to digits and a (single) dot for fractional digits.