Commit 15379c62 authored by Jérome Perrin's avatar Jérome Perrin

Open sale order line is a path, and it does not get a price automatically from

supply lines.
Also, trade model lines does not apply on the open order itself.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43511 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 094c29fa
......@@ -251,6 +251,7 @@ class TestOpenOrder(ERP5TypeTestCase):
open_sale_order_line = open_sale_order.newContent(
portal_type='Open Sale Order Line',
resource=self.portal.service_module.training.getRelativeUrl(),
price=100,
quantity=1)
open_sale_order.Order_applyTradeCondition(open_sale_order.getSpecialiseValue())
......@@ -258,11 +259,6 @@ class TestOpenOrder(ERP5TypeTestCase):
transaction.commit()
self.tic()
self.assertEqual(open_sale_order_line.getPrice(), 100)
self.assertEqual(open_sale_order.getTotalPrice(), 100)
# TODO: test equivalent feature with trade model line
# self.assertEqual(open_sale_order.getTotalNetPrice(), 105)
open_sale_order.setForecastingTermDayCount(5)
open_sale_order.order()
open_sale_order.start()
......
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