Files
odoo_source/addons
Eteil Djoumatchoua(etdj) 41bd821f82 [FIX] event_sale: get the right number of registrations
Steps:
- Create a new event.
- Choose any template (training, conference,...).
- Create new registration ticket for this event.
- Create a new quotation.
- Add 2 lines for "Event registration" product, and select each time the event and ticket created above.
- Click on "Confirm".

Issue:
4 registrations lines are created and 3 attendees.

Reason:
In ``RegistrationEditor.default_get()``, we match each sale order line with existing registrations in the sale order having
the same ``event_ticket_id`` without assuming we can have multiple sale order lines with the same ``event_ticket_id``. That
leads to [number_of_sol] * [number_of_ticket] registrations. To solve it, we just add an additional check for the
``sale_order_line_id`` to have a perfect match.

opw-3495415

closes odoo/odoo#138242

X-original-commit: 926ab300650eda02aefa728fa32b44831c49dfb3
Signed-off-by: Jérémy Hennecart (jeh) <jeh@odoo.com>
2023-10-10 15:42:57 +00:00
..
2023-09-27 11:33:01 +00:00
2023-09-27 11:33:01 +00:00
2023-10-06 14:33:43 +00:00
…
…
2023-09-27 11:33:01 +00:00
2023-09-27 11:33:01 +00:00
2023-09-27 11:33:01 +00:00
2023-09-27 11:33:01 +00:00