Commit 7ac4b375 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_panel: Jump into instance tree payment if possible

   Prefer use payment page related to the instance tree rather them the generic one, so it reduces confusion.
parent 78772be2
Pipeline #35823 failed with stage
in 0 seconds
aggregate_value = context.getAggregateValue()
if aggregate_value.getPortalType() == "Instance Tree":
return aggregate_value.Base_redirect(
'InstanceTree_viewCreateDirectDepositPaymentTransactionOnSlaposPanelDialog'
)
return context.getPortalObject().accounting_module.Base_redirect(
"AccountingTransactionModule_viewCreateExternalPaymentTransactionOnSlaposPanelDialog")
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