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

objectValues does not support id= argument


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22899 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ebd1b3fd
......@@ -681,14 +681,14 @@ class TestPackingListMixin(TestOrderMixin):
def stepCreateCurrency(self, sequence, **kw) :
"""Create a default currency. """
currency_module = self.getCurrencyModule()
if len(currency_module.objectValues(id='EUR'))==0:
if currency_module._getOb('EUR', None) is None:
currency = self.getCurrencyModule().newContent(
portal_type='Currency',
id="EUR",
base_unit_quantity=0.01,
)
else:
currency = currency_module.objectValues(id='EUR')[0]
currency = currency_module._getOb('EUR')
sequence.edit(currency=currency)
def stepSetOrderPriceCurrency(self, sequence, **kw) :
......
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