diff options
| author | Adrian Torres <adt@odoo.com> | 2019-05-23 09:36:53 +0000 |
|---|---|---|
| committer | Adrian Torres <adt@odoo.com> | 2019-05-23 11:34:07 +0000 |
| commit | 73235ad6aeb1dadf12fbfd3db05a1e4c06de9314 (patch) | |
| tree | 44838a2de17f41c003646766b774dc5ffad22188 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 9f7c476a6f6ec1ef5eed2cd44f165f5201747ab5 (diff) | |
[FIX] purchase: truncate description for stock.move.line
Before this commit, when creating a PO line with a description that was long
enough (~2712 bytes long) and then confirming the PO, a traceback would
pop up with an error from postgres "index row size exceeds maximum".
This is because when confirming a PO, a stock.move is created with a
stock.move.line mirroring the purchase.order.line, however the "name"
field on stock.move.line is indexed (whereas the purchase.order.line is
not), thus triggering the aforementioned error.
This commit solves this issue by truncating the name field on the
stock.move.line to 2000 bytes (for simplicity's sake) upon creation.
Fixes #33549
closes odoo/odoo#33607
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
