Commit f2f29256 authored by Romain Courteaud's avatar Romain Courteaud

Add some parentheses for security.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4293 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cb91fb1b
...@@ -200,7 +200,7 @@ class OrderBuilder(XMLObject, Amount, Predicate): ...@@ -200,7 +200,7 @@ class OrderBuilder(XMLObject, Amount, Predicate):
# section_uid=self.getDestinationSectionUid()) # section_uid=self.getDestinationSectionUid())
max_delay = resource.getMaxDelay(0) max_delay = resource.getMaxDelay(0)
movement.edit( movement.edit(
start_date=DateTime((stop_date-max_delay.Date())), start_date=DateTime(((stop_date-max_delay).Date())),
stop_date=DateTime(stop_date.Date()), stop_date=DateTime(stop_date.Date()),
quantity=min_flow-inventory_item.inventory, quantity=min_flow-inventory_item.inventory,
quantity_unit=resource.getQuantityUnit() quantity_unit=resource.getQuantityUnit()
......
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