diff --git a/l10n_it_delivery_note/wizard/delivery_note_select.py b/l10n_it_delivery_note/wizard/delivery_note_select.py index f026d9f27746..219805b61c79 100644 --- a/l10n_it_delivery_note/wizard/delivery_note_select.py +++ b/l10n_it_delivery_note/wizard/delivery_note_select.py @@ -35,6 +35,10 @@ def _compute_fields(self): if self.selected_picking_ids: self.picking_ids += self.selected_picking_ids + if self.selected_picking_ids.mapped("sale_id.partner_id"): + self.partner_id = self.selected_picking_ids.mapped( + "sale_id.partner_id" + ).id else: self.picking_ids = self.picking_ids