Commit baee6b01 authored by Romain Courteaud's avatar Romain Courteaud

WIP slapos_accounting: stop setting the source_payment on the Invoice

It is too early, and prevent other Simulation Movement to be aggregated
parent 3d995f23
......@@ -3,8 +3,8 @@ from Products.ERP5Type.Message import translateString
comment = translateString('Initialised by Delivery Builder.')
isTransitionPossible = context.getPortalObject().portal_workflow.isTransitionPossible
if context.getSourcePayment("") == "":
context.setSourcePayment(context.AccountingTransaction_getSourcePaymentItemList()[-1][1])
#if context.getSourcePayment("") == "":
# context.setSourcePayment(context.AccountingTransaction_getSourcePaymentItemList()[-1][1])
if isTransitionPossible(context, 'startBuilding'):
context.startBuilding(comment=comment)
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