[Erp5-report] r20991 - /erp5/trunk/products/ERP5/tests/testAccounting.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri May 16 11:11:31 CEST 2008
Author: jerome
Date: Fri May 16 11:11:26 2008
New Revision: 20991
URL: http://svn.erp5.org?rev=20991&view=rev
Log:
don't force resource parameter if resource_value is provided
Modified:
erp5/trunk/products/ERP5/tests/testAccounting.py
Modified: erp5/trunk/products/ERP5/tests/testAccounting.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testAccounting.py?rev=20991&r1=20990&r2=20991&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testAccounting.py (original)
+++ erp5/trunk/products/ERP5/tests/testAccounting.py Fri May 16 11:11:26 2008
@@ -123,7 +123,8 @@
"""
created_by_builder = kw.pop('created_by_builder', lines is not None)
kw.setdefault('start_date', DateTime())
- kw.setdefault('resource', 'currency_module/euro')
+ if 'resource_value' not in kw:
+ kw.setdefault('resource', 'currency_module/euro')
if portal_type in ('Purchase Invoice Transaction',
'Balance Transaction'):
if 'destination_section' not in kw:
More information about the Erp5-report
mailing list