Commit a0c1c741 authored by Jérome Perrin's avatar Jérome Perrin

pass portal type explicitly when creating lines.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14184 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 236bead0
...@@ -787,12 +787,14 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase): ...@@ -787,12 +787,14 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase):
) )
notebook_line = multi_line_invoice.newContent( notebook_line = multi_line_invoice.newContent(
portal_type = self.sale_invoice_line_portal_type,
id = 'notebook_line', id = 'notebook_line',
resource = product_notebook.getRelativeUrl(), resource = product_notebook.getRelativeUrl(),
quantity = 10, quantity = 10,
price = 10) price = 10)
barebone_line = multi_line_invoice.newContent( barebone_line = multi_line_invoice.newContent(
portal_type = self.sale_invoice_line_portal_type,
id = 'barebone_line', id = 'barebone_line',
resource = product_barebone.getRelativeUrl(), resource = product_barebone.getRelativeUrl(),
quantity = 10, quantity = 10,
......
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