Commit 653a586c authored by Jérome Perrin's avatar Jérome Perrin

call edit when creating a new Invoice Line, as it is done in the GUI.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4061 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent eb3b4967
......@@ -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(
......
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