Skip to content
Snippets Groups Projects
Commit b45e65a9 authored by Guillaume (guva)'s avatar Guillaume (guva)
Browse files

[FIX] event_sale : unable to delete multiple SO


Step to reproduce:

- go to sale app
- select several SO
- action menu > delete
- got a traceback

Change the unlink definition to get multiple elements with mapped.
This fix an issue introduced on PR 72253

opw-2605699

closes odoo/odoo#73942

Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent 0c293ce4
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ class SaleOrder(models.Model):
return res
def unlink(self):
self.order_line._unlink_associated_registrations()
self.mapped('order_line')._unlink_associated_registrations()
super(SaleOrder, self).unlink()
......
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