Skip to content
Snippets Groups Projects
Commit a0185c17 authored by Kevin Baptiste's avatar Kevin Baptiste
Browse files

[FIX] lunch: show correct order price


THe price shown on the order line was not taking into account the
quantities ordered.

closes odoo/odoo#85846

Taskid: 2678064
X-original-commit: f9243560
Signed-off-by: default avatarKevin Baptiste <kba@odoo.com>
parent 8b8a0ae8
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ class LunchController(http.Controller):
lines = self._get_current_lines(user.id)
if lines:
lines = [{'id': line.id,
'product': (line.product_id.id, line.product_id.name, float_repr(float_round(line.product_id.price, 2), 2)),
'product': (line.product_id.id, line.product_id.name, float_repr(float_round(line.price, 2), 2)),
'toppings': [(topping.name, float_repr(float_round(topping.price, 2), 2))
for topping in line.topping_ids_1 | line.topping_ids_2 | line.topping_ids_3],
'quantity': line.quantity,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment