Skip to content
Snippets Groups Projects
Commit 0ff14cc8 authored by Fernanda Hernández's avatar Fernanda Hernández
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#105393

Signed-off-by: default avatarTrinh Jacky (trj) <trj@odoo.com>
parent 0d50121f
No related branches found
No related tags found
No related merge requests found
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