Commit 99d97add authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_trade: keep date from order

parent 1830bba7
...@@ -84,7 +84,10 @@ class DeliveryRuleMovementGenerator(MovementGeneratorMixin): ...@@ -84,7 +84,10 @@ class DeliveryRuleMovementGenerator(MovementGeneratorMixin):
def _getUpdatePropertyDict(self, input_movement): def _getUpdatePropertyDict(self, input_movement):
# Override default mixin implementation # Override default mixin implementation
return {'order': None, return {'order': None,
'delivery': None,} 'delivery': None,
'start_date': input_movement.getStartDate(),
'stop_date': input_movement.getStopDate()
}
def _getInputMovementList(self, movement_list=None, rounding=None): def _getInputMovementList(self, movement_list=None, rounding=None):
return [self._applied_rule.getParentValue(),] return [self._applied_rule.getParentValue(),]
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