Skip to content

Commit

Permalink
fixup! shopfloor_packing_info: deprecate
Browse files Browse the repository at this point in the history
  • Loading branch information
JuMiSanAr authored and mmequignon committed Oct 10, 2024
1 parent 764b734 commit a44cb98
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions shopfloor_packing_info/migrations/14.0.1.2.0/post-migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ def populate_stock_picking_note__packing(env):
"note_type_id": packing_note_type.id,
}
)
partner = env["res.partner"].search(
[("shopfloor_packing_info_id", "=", packing_info.id)], limit=1
partners = env["res.partner"].search(
[("shopfloor_packing_info_id", "=", packing_info.id)]
)
if partner:
partner.stock_picking_note_ids |= note
if partners:
for partner in partners:
partner.stock_picking_note_ids |= note


def migrate(cr, version):
Expand Down

0 comments on commit a44cb98

Please sign in to comment.