diff --git a/product/ERP5/Document/QuantitySplitSolver.py b/product/ERP5/Document/QuantitySplitSolver.py index 2942af5849282fb59391f764ef803931cedc0a9f..7ddab1eb85176f5290cdbb30313df72142e1033c 100644 --- a/product/ERP5/Document/QuantitySplitSolver.py +++ b/product/ERP5/Document/QuantitySplitSolver.py @@ -79,5 +79,9 @@ class QuantitySplitSolver(SolverMixin, ConfigurableMixin, XMLObject): batch_mode=True) # Copy at same level new_movement._setDelivery(None) new_movement._setQuantity(split_quantity) - new_movement._setStartDate(configuration_dict['start_date']) - new_movement._setStopDate(configuration_dict['stop_date']) + start_date = configuration_dict.get('start_date', None) + if start_date is not None: + new_movement._setStartDate(start_date) + stop_date = configuration_dict.get('stop_date', None) + if stop_date is not None: + new_movement._setStopDate(stop_date)