Update test scenario to use two Many2Many for handling exceptions

#8142
This commit is contained in:
Cédric Krier
2024-09-20 00:48:48 +02:00
parent b3794e1151
commit 6ac7de5098
6 changed files with 20 additions and 7 deletions
@@ -358,7 +358,8 @@ Handle the exception on the sale level, not recreating the invoice will create
the final invoice with the remaining total::
>>> handle_exception = sale.click('handle_invoice_exception')
>>> _ = handle_exception.form.recreate_invoices.pop()
>>> handle_exception.form.ignore_invoices.extend(
... handle_exception.form.ignore_invoices.find())
>>> handle_exception.execute('handle')
>>> sale.reload()
@@ -391,6 +392,8 @@ it::
'exception'
>>> handle_exception = sale.click('handle_invoice_exception')
>>> handle_exception.form.recreate_invoices.extend(
... handle_exception.form.recreate_invoices.find())
>>> handle_exception.execute('handle')
>>> sale.reload()
>>> _, inv_recreated = sale.advance_payment_invoices