Commit e2890911 authored by Łukasz Nowak's avatar Łukasz Nowak

Put back featre for disallowing creation of deliveries.

parent d701755b
......@@ -417,6 +417,9 @@ class BuilderMixin(XMLObject, Amount, Predicate):
delivery = delivery_to_update_list[0]
if delivery is None:
if not self.getDeliveryCreatable():
raise SelectMethodError('No updatable delivery found with %s' \
% (self.getPath(),))
delivery = self._createDelivery(delivery_module,
movement_group_node.getMovementList(),
activate_kw)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment