Commit 0d01e88f authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

make sure to store stop_date even if it is same as start_date, otherwise...

make sure to store stop_date even if it is same as start_date, otherwise stop_date is sometimes stored, sometimes non stored.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36303 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4fa77cb0
......@@ -419,6 +419,7 @@ class OrderBuilder(XMLObject, Amount, Predicate):
# Put properties on delivery
self._setUpdated(delivery, 'delivery')
if property_dict:
property_dict.setdefault('edit_order', ('stop_date', 'start_date'))
delivery.edit(**property_dict)
# Then, create delivery line
......@@ -492,6 +493,7 @@ class OrderBuilder(XMLObject, Amount, Predicate):
# Put properties on delivery line
self._setUpdated(delivery_line, 'line')
if property_dict:
property_dict.setdefault('edit_order', ('stop_date', 'start_date'))
delivery_line.edit(**property_dict)
if movement_group_node.getCurrentMovementGroup().isBranch():
......
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