Commit bf973882 authored by Jérome Perrin's avatar Jérome Perrin

fix conflictual variable naming


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4028 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7c8e95b7
...@@ -89,9 +89,8 @@ class InvoiceTransactionRule(Rule, XMLMatrix): ...@@ -89,9 +89,8 @@ class InvoiceTransactionRule(Rule, XMLMatrix):
security.declareProtected(Permissions.ModifyPortalContent, 'expand') security.declareProtected(Permissions.ModifyPortalContent, 'expand')
def expand(self, applied_rule, force=0, **kw): def expand(self, applied_rule, force=0, **kw):
"""Expands the current movement downward. """ Expands the current movement downward.
""" """
invoice_transaction_line_type = 'Simulation Movement' invoice_transaction_line_type = 'Simulation Movement'
# First, get the simulation movement we were expanded from # First, get the simulation movement we were expanded from
...@@ -122,9 +121,9 @@ class InvoiceTransactionRule(Rule, XMLMatrix): ...@@ -122,9 +121,9 @@ class InvoiceTransactionRule(Rule, XMLMatrix):
# Add every movement from the Matrix to the Simulation # Add every movement from the Matrix to the Simulation
for transaction_line in my_cell.objectValues() : for transaction_line in my_cell.objectValues() :
if transaction_line.getId() in applied_rule.objectIds() : if transaction_line.getId() in applied_rule.objectIds() :
simulation_movement = applied_rule[transaction_line.getId()] my_simulation_movement = applied_rule[transaction_line.getId()]
else : else :
simulation_movement = applied_rule.newContent( my_simulation_movement = applied_rule.newContent(
id = transaction_line.getId() id = transaction_line.getId()
, portal_type=invoice_transaction_line_type) , portal_type=invoice_transaction_line_type)
...@@ -174,7 +173,7 @@ class InvoiceTransactionRule(Rule, XMLMatrix): ...@@ -174,7 +173,7 @@ class InvoiceTransactionRule(Rule, XMLMatrix):
# XXX this happen in many order, so this log is probably useless # XXX this happen in many order, so this log is probably useless
LOG("InvoiceTransactionRule", PROBLEM, LOG("InvoiceTransactionRule", PROBLEM,
"expanding %s: without resource"%applied_rule.getPath()) "expanding %s: without resource"%applied_rule.getPath())
simulation_movement.edit( my_simulation_movement._edit(
source = transaction_line.getSource() source = transaction_line.getSource()
, destination = transaction_line.getDestination() , destination = transaction_line.getDestination()
, source_section = my_invoice_line_simulation.getSourceSection() , source_section = my_invoice_line_simulation.getSourceSection()
......
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