Commit 04e926e1 authored by Sebastien Robin's avatar Sebastien Robin

call getTransformation with movement instead of rule


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4318 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent add5261a
...@@ -93,11 +93,11 @@ class TransformationSourcingRuleMixin(ExtensionClass.Base): ...@@ -93,11 +93,11 @@ class TransformationSourcingRuleMixin(ExtensionClass.Base):
movement.edit(**(movement_dict[movement_id])) movement.edit(**(movement_dict[movement_id]))
security.declareProtected(Permissions.View, 'getTransformation') security.declareProtected(Permissions.View, 'getTransformation')
def getTransformation(self, applied_rule): def getTransformation(self, movement):
""" """
Get transformation related to used by the applied rule. Get transformation related to used by the applied rule.
""" """
production_order_movement = applied_rule.getRootSimulationMovement().\ production_order_movement = movement.getRootSimulationMovement().\
getOrderValue() getOrderValue()
# XXX Acquisition can be use instead # XXX Acquisition can be use instead
parent_uid = production_order_movement.getParent().getUid() parent_uid = production_order_movement.getParent().getUid()
......
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