Skip to content
Snippets Groups Projects
user avatar
Fernanda Hernández authored
The user could make the mistake to put a large number in the `Guests`
input in the POS order and this is not validated, even an number more large
for the capacity of an integer, raising an uncontrolled error:

`psycopg2.errors.NumericValueOutOfRange: integer out of range`

this commit is adding a validation error in order to limit the number of `Guests`
with the maximum number for an integer:  2**31 - 1

closes odoo/odoo#106523

X-original-commit: 0ff14cc8
Signed-off-by: default avatarTrinh Jacky (trj) <trj@odoo.com>
0ad071e5
History
Name Last commit Last update