diff --git a/product/ERP5/tests/testAmount.py b/product/ERP5/tests/testAmount.py index 1a52d032980bf81df1f97bb48515fd4fb50bf090..4e8852d8048bb0ad1cd85f84ea1811a2f5962164 100644 --- a/product/ERP5/tests/testAmount.py +++ b/product/ERP5/tests/testAmount.py @@ -112,7 +112,7 @@ class TestAmount(ERP5TypeTestCase): module = portal.getDefaultModule(self.amount_parent_portal_type) amount_parent = module.newContent( portal_type=self.amount_parent_portal_type) - amount = module.newContent( + amount = amount_parent.newContent( portal_type=self.amount_portal_type) sequence.edit( amount=amount,