Commit 466f6eaa authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

same as r32213:

using delivery=xxx instead of delivery_value=xxx because delivery can be included in kw.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32214 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c0bb63a2
No related merge requests found
...@@ -104,11 +104,12 @@ class InvoiceRuleMovementGenerator(MovementGeneratorMixin): ...@@ -104,11 +104,12 @@ class InvoiceRuleMovementGenerator(MovementGeneratorMixin):
._getInputMovementAndPathTupleList(context): ._getInputMovementAndPathTupleList(context):
kw = self._getPropertyAndCategoryList(input_movement, business_path, kw = self._getPropertyAndCategoryList(input_movement, business_path,
rule) rule)
input_movement_url = input_movement.getRelativeUrl()
kw.update({'order':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,
order_value=input_movement,
delivery_value=input_movement,
**kw) **kw)
ret.append(simulation_movement) ret.append(simulation_movement)
return ret return ret
......
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