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

don't use Tax Line in this test, and put a TODO for how this test have to be

updated once we move order printouts to trade model line.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28514 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8cfdd3cf
...@@ -2608,7 +2608,12 @@ class TestOrder(TestOrderMixin, ERP5TypeTestCase): ...@@ -2608,7 +2608,12 @@ class TestOrder(TestOrderMixin, ERP5TypeTestCase):
self.resource_portal_type).newContent( self.resource_portal_type).newContent(
portal_type=self.resource_portal_type, portal_type=self.resource_portal_type,
title='Résource',) title='Résource',)
tax = self.portal.tax_module.newContent(portal_type='Tax', title='tàx')
# TODO: once we have updated order printout to use trade model lines, test
# the case of a trade model line with non ascii title on resource.
# tax = self.portal.tax_module.newContent(portal_type='Tax', title='tàx')
client = self.portal.organisation_module.newContent( client = self.portal.organisation_module.newContent(
portal_type='Organisation', portal_type='Organisation',
title='Cliént', title='Cliént',
...@@ -2629,10 +2634,13 @@ class TestOrder(TestOrderMixin, ERP5TypeTestCase): ...@@ -2629,10 +2634,13 @@ class TestOrder(TestOrderMixin, ERP5TypeTestCase):
resource_value=resource, resource_value=resource,
quantity=10, quantity=10,
price=3) price=3)
tax_line = order.newContent(portal_type='Tax Line',
resource_value=tax, # see TODO above
quantity=30, #tax_line = order.newContent(portal_type='Tax Line',
price=.26) # resource_value=tax,
# quantity=30,
# price=.26)
order.confirm() order.confirm()
transaction.commit() transaction.commit()
self.tic() self.tic()
......
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