Skip to content
Snippets Groups Projects
Commit 0ad071e5 authored by Fernanda Hernández's avatar Fernanda Hernández Committed by Jacky (trj)
Browse files

[FIX] pos_restaurant: validate number of guest put by user


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>
parent cc3ab760
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment