summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2019-04-10 09:28:16 +0000
committerDenis Ledoux <dle@odoo.com>2019-04-10 09:28:16 +0000
commit39fd19ffd7799301b94199390e7dfc10f9762254 (patch)
tree6adc5f6670a504498ee12fb0bf1201038ebe1b84 /addons/web/static/src/js/fields/basic_fields.js
parente0ba54331a5369c414bc501c69d1c33beeb3acba (diff)
[FIX] point_of_sale: lost pos orders on IntegrityError
This revision is similar to 605b94e64c202d7dbb335ce37280fae87a3a6d87 except that instead of an OperationalError (e.g. a conccurent update), this is an IntegrityError which is raised, an sql constraint which is not met, e.g. a unique or required constraint. In the case of this opw, this is the picking name unique constraint which was not met, the picking sequence number has somehow been re-used. Both `psycopg2.OperationalError` and `psycopg2.IntegrityError` inherits from `psycopg2.DatabaseError` We therefore choose to use this Exception class, to include all kind of psycopg2 exceptions that prevent the transaction to be committed. opw-1965679 closes odoo/odoo#32577 Signed-off-by: Denis Ledoux <beledouxdenis@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions