From 1014270142a932eaf51123e567246123f2338615 Mon Sep 17 00:00:00 2001 From: JuMiSanAr Date: Mon, 4 Mar 2024 15:23:24 +0100 Subject: [PATCH] stock_picking_partner_note: only use active notes --- stock_picking_partner_note/models/stock_picking.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock_picking_partner_note/models/stock_picking.py b/stock_picking_partner_note/models/stock_picking.py index bbb9af0bafca..ed8c900361d8 100644 --- a/stock_picking_partner_note/models/stock_picking.py +++ b/stock_picking_partner_note/models/stock_picking.py @@ -20,7 +20,7 @@ def _compute_note(self): for picking in self: picking_type_note_type_ids = picking.picking_type_id.partner_note_type_ids picking_notes = picking.partner_id.stock_picking_note_ids.filtered( - lambda n: n.note_type_id in picking_type_note_type_ids + lambda n: n.active and n.note_type_id in picking_type_note_type_ids ) picking_notes = [ note.name.strip()