diff --git a/product/ERP5/tests/testAccounting_l10n_fr_m9.py b/product/ERP5/tests/testAccounting_l10n_fr_m9.py
index 957ba853f382c30c592f263bf67678a75a2f3e31..2ee9a892bdc41f9a731eb2647808576a7b22e957 100644
--- a/product/ERP5/tests/testAccounting_l10n_fr_m9.py
+++ b/product/ERP5/tests/testAccounting_l10n_fr_m9.py
@@ -155,7 +155,8 @@ class TestAccounting_l10n_M9(ERP5TypeTestCase):
             portal_type=self.purchase_invoice_transmission_sheet_portal_type)
     self.assertEquals(transmission_sheet.getValidationState(), 'draft')
     # add an invoice to the transamission sheet
-    transmission_sheet.setAggregateValue(invoice)
+    invoice.setAggregateValue(transmission_sheet)
+    invoice.recursiveImmediateReindexObject()
     self.getWorkflowTool().doActionFor(
                             transmission_sheet,
                             'emit_action')