diff --git a/product/ERP5/tests/testAccountingRules.py b/product/ERP5/tests/testAccountingRules.py index d59c79ce6dbce8e299a9e78da44fa92f0ca790d0..4d0e02392536abc89ba5ed4ad523f8f1fdb7e827 100755 --- a/product/ERP5/tests/testAccountingRules.py +++ b/product/ERP5/tests/testAccountingRules.py @@ -623,11 +623,14 @@ class TestAccountingRules(ERP5TypeTestCase): invoice_line = invoice.newContent( id = 'invoice_line_%s'%(int(random.random()*1000)), - resource = product_notebook.getRelativeUrl(), - quantity = 10, - price = 10, portal_type = self.sale_invoice_line_portal_type) + invoice_line.edit( + resource = product_notebook.getRelativeUrl(), + quantity = 10, + price = 10 + ) + self.assertEqual(invoice_line.getTotalPrice(), 100) sequence.edit(