diff --git a/internal_stock_quant_package/models/stock_picking.py b/internal_stock_quant_package/models/stock_picking.py index b630db2a973..f97d1dcc713 100644 --- a/internal_stock_quant_package/models/stock_picking.py +++ b/internal_stock_quant_package/models/stock_picking.py @@ -43,7 +43,8 @@ def _empty_transferred_internal_packages(self): ) packages = pickings.mapped("move_line_ids.package_id") internal_packages = packages.filtered("is_internal") - internal_packages.unpack() + if internal_packages: + internal_packages.unpack() def _move_lines_clear_internal_result_packages(self): """