Commit 2fe04d4f authored by Nicolas Dumazet's avatar Nicolas Dumazet

quantity_unit is not acquired from resource anymore: user needs to set it.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37252 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 17368cc7
......@@ -212,6 +212,9 @@ class TestTradeReports(ERP5ReportTestCase):
resource=product,
quantity=values["quantity"],
price=values["price"])
# use default quantity unit from resource
sale_order_line.setQuantityUnit(
sale_order_line.getResourceValue().getDefaultQuantityUnit())
self.assertEquals(sale_order.getSimulationState(), 'draft')
if cancel:
......
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