summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/models/messaging_notification_handler
diff options
context:
space:
mode:
authorGuewen Baconnier <guewen.baconnier@camptocamp.com>2020-06-09 09:14:43 +0000
committerGuewen Baconnier <guewen.baconnier@camptocamp.com>2020-08-24 12:29:32 +0000
commit84b4aa8ed34bcc16d8306277124980766941ca19 (patch)
tree29d4b6c82c427dc68bc5a0b27c38a37f3bb32313 /addons/mail/static/src/models/messaging_notification_handler
parentd2791395d4063e9080efe3a1dd577c28d27e24bb (diff)
[FIX] Ignore sale order lines without product_id
In some conditions, such as the use case shown on: https://github.com/guewen/odoo-reproduce-issues/blob/compute-qty-at-date/compute_qty_at_date/models/sale_order_line.py The order of the computations can make that we have a line without product_id (we come from an onchange because we removed the product form the line), but 'display_qty_widget' is not yet recomputed. Not checking if we have a product_id means we can end up with 'grouped_lines' that contains an entry for the line, but then 'product_qties' does not contain the product the dict comprehension that builds the dictionary 'qties_per_product' fails with a KeyError. opw-2273768 closes odoo/odoo#56401 X-original-commit: 9060b347949d11880c554468f551d25e874590d1 Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Diffstat (limited to 'addons/mail/static/src/models/messaging_notification_handler')
0 files changed, 0 insertions, 0 deletions