Because the barcode app bypasses the detailed operations for receipts (with default settings set), an error was being thrown when doing "put in pack" when a carrier is set (saving during the delivery package wizard) because the picking move lines are incorrectly selected. This commit adds in a check for when the wizard is accessed via the barcode app so that the error does not occur and the same behavior as when no carrier is assigned is followed. Related Enterprise PR: odoo/enterprise#9808 closes odoo/odoo#59792 Task: 2039720 X-original-commit: 945b5f6791ae890498ef9a34828eaf91dc1457e2 Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>