summaryrefslogtreecommitdiff
path: root/doc/reference/javascript.rst
diff options
context:
space:
mode:
authorJoren Van Onder <jov@odoo.com>2016-03-23 14:58:51 +0100
committerJoren Van Onder <jov@odoo.com>2016-03-23 16:25:47 +0100
commit48eb674a7003f046207485cc127e314c0936313a (patch)
tree78908e95bf7b45b5605ca83205289f53f530c1c7 /doc/reference/javascript.rst
parentde8e9a0f9678c234c50edc782e62874823fb8b02 (diff)
[FIX] pos_mercury: allow for 40 bit mercury invoice numbers
We generate the Mercury invoice number in JavaScript based on the uid property of the order. That uid is generated by Order.generate_unique_id() which generates a 12 digit number. A decimal 12 digit number can contain a maximum value of 10^12 - 1 which requires 40 bits to store. The issue is that Integer fields by default are backed by a PostgreSQL integer type which is only 4 bytes. This means you can end up with an invoice number you won't be able to store in the database. In order to resolve this we will update the field to be a Float field instead which will result in a PostgreSQL double precision type which allows values up to 10^308. opw-671362
Diffstat (limited to 'doc/reference/javascript.rst')
0 files changed, 0 insertions, 0 deletions