Commit 183e90f8 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

no longer use the order category in new simulation rules.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33397 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 64a474f3
...@@ -107,8 +107,7 @@ class DeliveryRuleMovementGenerator(MovementGeneratorMixin): ...@@ -107,8 +107,7 @@ class DeliveryRuleMovementGenerator(MovementGeneratorMixin):
kw = self._getPropertyAndCategoryList(input_movement, business_path, kw = self._getPropertyAndCategoryList(input_movement, business_path,
rule) rule)
input_movement_url = input_movement.getRelativeUrl() input_movement_url = input_movement.getRelativeUrl()
kw.update({'order':input_movement_url, kw.update({'delivery':input_movement_url})
'delivery':input_movement_url})
simulation_movement = context.newContent( simulation_movement = context.newContent(
portal_type=RuleMixin.movement_type, portal_type=RuleMixin.movement_type,
temp_object=True, temp_object=True,
......
...@@ -105,8 +105,7 @@ class InvoiceRuleMovementGenerator(MovementGeneratorMixin): ...@@ -105,8 +105,7 @@ class InvoiceRuleMovementGenerator(MovementGeneratorMixin):
kw = self._getPropertyAndCategoryList(input_movement, business_path, kw = self._getPropertyAndCategoryList(input_movement, business_path,
rule) rule)
input_movement_url = input_movement.getRelativeUrl() input_movement_url = input_movement.getRelativeUrl()
kw.update({'order':input_movement_url, kw.update({'delivery':input_movement_url})
'delivery':input_movement_url})
simulation_movement = context.newContent( simulation_movement = context.newContent(
portal_type=RuleMixin.movement_type, portal_type=RuleMixin.movement_type,
temp_object=True, temp_object=True,
......
...@@ -107,7 +107,7 @@ class OrderRuleMovementGenerator(MovementGeneratorMixin): ...@@ -107,7 +107,7 @@ class OrderRuleMovementGenerator(MovementGeneratorMixin):
kw = self._getPropertyAndCategoryList(input_movement, business_path, kw = self._getPropertyAndCategoryList(input_movement, business_path,
rule) rule)
input_movement_url = input_movement.getRelativeUrl() input_movement_url = input_movement.getRelativeUrl()
kw.update({'order':input_movement_url}) kw.update({'delivery':input_movement_url})
simulation_movement = context.newContent( simulation_movement = context.newContent(
portal_type=RuleMixin.movement_type, portal_type=RuleMixin.movement_type,
temp_object=True, temp_object=True,
......
54 55
\ No newline at end of file \ No newline at end of file
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