Commit f4908274 authored by Jérome Perrin's avatar Jérome Perrin Committed by Aurel

payment_mean: fix a wrong substitution in history comment

This was often leaving a comment with 'None'
parent 6e4ef313
......@@ -19,7 +19,10 @@ if payment_transaction.getSimulationState() == 'confirmed':
workflow_action='stop_action',
comment=translateString(
"Posted automatically with payment transaction group ${payment_transaction_group_reference}",
mapping={'payment_transaction_group_reference': payment_transaction_group.getReference()}),
mapping={
'payment_transaction_group_reference':
payment_transaction_group.getSourceReference()
or payment_transaction_group.getReference()}),
batch_mode=True,
)
if payment_transaction.getSimulationState() == 'stopped':
......
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