Skip to content

Commit

Permalink
stock_picking_partner_note: only use active notes
Browse files Browse the repository at this point in the history
  • Loading branch information
JuMiSanAr committed Mar 4, 2024
1 parent a455ea4 commit 1014270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stock_picking_partner_note/models/stock_picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1014270

Please sign in to comment.