Skip to content
Snippets Groups Projects
Commit 78d036b3 authored by Yolann Sabaux's avatar Yolann Sabaux
Browse files

[FIX] account_check_printing: extend limit for check numbering

Steps to reproduce:
- Create a new journal Bank
- In Sequence, find the 'New Bank Check" and edit it so the sequence can be 10 number digits long
- Create a Vendor Payments with the the New Banck and Check as a method
- Click on Print a check
- Set any number > 2147483647 and validate

Issue:
Traceback

Cause:
The query SQL make a check to verifiy that the number is correct ('025'::integer == '25'::integer but '025'!='25)
But using INTEGER limits the number up to 2147483647 (https://www.postgresql.org/docs/current/datatype-numeric.html

)

Solution:
Use BIGINT whose limit is 9223372036854775807

opw-3140973

closes odoo/odoo#113483

X-original-commit: 49dd9dff
Signed-off-by: default avatarYolann Sabaux (yosa) <yosa@odoo.com>
Signed-off-by: default avatarJohn Laterre (jol) <jol@odoo.com>
parent 0611fb43
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment