Commit 38e81ae6 authored by Jérome Perrin's avatar Jérome Perrin

enable the check that price currency is copied into simulation

remove an useless immediate_reindex=1



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20577 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 340fb1d4
...@@ -101,8 +101,7 @@ class TestInvoice(TestPackingListMixin, ...@@ -101,8 +101,7 @@ class TestInvoice(TestPackingListMixin,
if not cat in path.objectIds() : if not cat in path.objectIds() :
path = path.newContent( path = path.newContent(
portal_type='Category', portal_type='Category',
id=cat, id=cat,)
immediate_reindex=1 )
else: else:
path = path[cat] path = path[cat]
# check categories have been created # check categories have been created
...@@ -1973,9 +1972,8 @@ class TestInvoice(TestPackingListMixin, ...@@ -1973,9 +1972,8 @@ class TestInvoice(TestPackingListMixin,
invoice_transaction_applied_rule.contentValues()[0] invoice_transaction_applied_rule.contentValues()[0]
self.assertEquals(order_price_currency, self.assertEquals(order_price_currency,
invoice_transaction_movement.getResource()) invoice_transaction_movement.getResource())
# TODO: price currency have to be copied on simulation movements too self.assertEquals(order_price_currency,
# self.assertEquals(order_price_currency, invoice_transaction_movement.getPriceCurrency())
# invoice_transaction_movement.getPriceCurrency())
#class TestPurchaseInvoice(TestInvoice): #class TestPurchaseInvoice(TestInvoice):
# order_portal_type = 'Purchase Order' # order_portal_type = 'Purchase Order'
......
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