Commit b3ba2503 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_erp5: Cancel manually the invoice on the test

   Since the alarm was removed to auto-cancel, we now use an action to cancel users invoices.
parent 829a89eb
......@@ -523,8 +523,16 @@ class TestSlapOSDefaultCRMEscalation(DefaultScenarioMixin):
self.stepCallSlaposRequestUpdateHostingSubscriptionOpenSaleOrderAlarm()
self.tic()
# cancel the invoice
self.stepCallSlaposCrmCancelInvoiceAlarm()
# Manually cancel the users invoice
payment = self.portal.portal_catalog.getResultValue(
portal_type="Payment Transaction",
destination_section_uid=person.getUid(),
simulation_state="started")
invoice = payment.getCausalityValue(portal_type="Sale Invoice Transaction")
invoice.SaleInvoiceTransaction_createReversalPayzenTransaction()
self.tic()
# close the ticket
......
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