Commit 4182a9e1 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use rule's updating testers for creating first level simulation movements.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32185 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 84916253
...@@ -101,9 +101,11 @@ class DeliveryRuleMovementGenerator(MovementGeneratorMixin): ...@@ -101,9 +101,11 @@ class DeliveryRuleMovementGenerator(MovementGeneratorMixin):
Input movement list comes from delivery Input movement list comes from delivery
""" """
ret = [] ret = []
rule = context.getSpecialiseValue()
for input_movement, business_path in self \ for input_movement, business_path in self \
._getInputMovementAndPathTupleList(context): ._getInputMovementAndPathTupleList(context):
kw = self._getPropertyAndCategoryList(input_movement, business_path) kw = self._getPropertyAndCategoryList(input_movement, business_path,
rule)
simulation_movement = context.newContent( simulation_movement = context.newContent(
portal_type=RuleMixin.movement_type, portal_type=RuleMixin.movement_type,
temp_object=True, temp_object=True,
......
...@@ -99,9 +99,11 @@ class InvoiceRuleMovementGenerator(MovementGeneratorMixin): ...@@ -99,9 +99,11 @@ class InvoiceRuleMovementGenerator(MovementGeneratorMixin):
Input movement list comes from delivery Input movement list comes from delivery
""" """
ret = [] ret = []
rule = context.getSpecialiseValue()
for input_movement, business_path in self \ for input_movement, business_path in self \
._getInputMovementAndPathTupleList(context): ._getInputMovementAndPathTupleList(context):
kw = self._getPropertyAndCategoryList(input_movement, business_path) kw = self._getPropertyAndCategoryList(input_movement, business_path,
rule)
simulation_movement = context.newContent( simulation_movement = context.newContent(
portal_type=RuleMixin.movement_type, portal_type=RuleMixin.movement_type,
temp_object=True, temp_object=True,
......
...@@ -101,9 +101,11 @@ class OrderRuleMovementGenerator(MovementGeneratorMixin): ...@@ -101,9 +101,11 @@ class OrderRuleMovementGenerator(MovementGeneratorMixin):
Input movement list comes from order Input movement list comes from order
""" """
ret = [] ret = []
rule = context.getSpecialiseValue()
for input_movement, business_path in self \ for input_movement, business_path in self \
._getInputMovementAndPathTupleList(context): ._getInputMovementAndPathTupleList(context):
kw = self._getPropertyAndCategoryList(input_movement, business_path) kw = self._getPropertyAndCategoryList(input_movement, business_path,
rule)
simulation_movement = context.newContent( simulation_movement = context.newContent(
portal_type=RuleMixin.movement_type, portal_type=RuleMixin.movement_type,
temp_object=True, temp_object=True,
......
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