summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/transcoder.js
diff options
context:
space:
mode:
authorAlex Comba <alex.comba@agilebg.com>2017-04-11 16:37:46 +0200
committerThibault Delavallée <tde@odoo.com>2017-05-30 16:25:56 +0200
commit40e9b7563f1d243c42ba0106b9fa495a046bce90 (patch)
tree7e697375c17bebfa5183cff7a5c30b0c86582aa1 /addons/web_editor/static/src/js/transcoder.js
parente2f3e8c4b79b5a86aceef3e47368cdba9c0c982d (diff)
[FIX] product: prevent ValueError when computing quantity on a void recordset
Invoice lines do not necessarily have a product and therefore an UoM set on them. You could then compute quantityes on a void recordset. In that case we just return the quantity untouched. This is actually the old behavior of compute_quantity that is set back. See https://github.com/odoo/odoo/blob/01279359b9e5340d5ecb15f0fee186f039356374/addons/product/product.py#L164 . Closes #16377
Diffstat (limited to 'addons/web_editor/static/src/js/transcoder.js')
0 files changed, 0 insertions, 0 deletions